关于shellexeute()返回结果的问题
函数:
void CSdadsDlg::OnButton1()
{
// TODO: Add your control notification handler code here
ShellExecute(this->m_hWnd,"open", "ping.exe", "", "", SW_SHOWNORMAL);
}
请问如何根据实现时ShellExecute执行ping 127.0.0.1的效果,
并根据ping 的返回结果谈出不同的消息
本人用HINSTANCE respone=ShellExecute(this->m_hWnd,"open", "ping.exe", "", "", SW_SHOWNORMAL);
if (n>32)
AfxMessageBox("success");
else
AfxMessageBox("faiL");
未能成功!!