如:
txt文件 得到 D:\winnt\notepad.exe
dsw文件 得到 D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXEShellExecute就做到了~~ 请问有什么简单方法可以实现吗?
txt文件 得到 D:\winnt\notepad.exe
dsw文件 得到 D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXEShellExecute就做到了~~ 请问有什么简单方法可以实现吗?
解决方案 »
- 未能注册输出。请确保您有修改注册表的相应权限。
- 在程序的二进制代码中,系统函数调用是在什么地址空间里?
- HOOK 记录 回放 能不能回放 鼠标滚动事件
- 请各位前辈帮忙看看 心里没底
- 如何从B对话框中获得A对话框中树形控件中的项目数?
- 使用csocket,send时出现10057号错误WSAENOTCONN
- 最后的奋斗!(新手)
- C/C++群,招募有共同爱好,有上进心的朋友加入(1群已满,新建2、3群)
- 200分:求除MSDN之外的:ATL 7.1(或8) 学习资料(不是ATL3.0)
- 100分51前大放送;) 快来拿啊~
- 想使用诸如WM_CHAR的重复击键功能,有没有什莫办法?
- 100分请教编译问题!
CFile tempFile;
tempFile.Open("c:\\temp.txt",CFile::modeCreate );
tempFile.Close();
FindExecutable("c:\\temp.txt",NULL,pszExeName);
CFile::Remove("c:\\temp.txt");
AfxMessageBox(pszExeName);
LPCTSTR lpFile,
LPCTSTR lpDirectory,
LPTSTR lpResult
);HRESULT AssocQueryString(
ASSOCF flags,
ASSOCSTR str,
LPCTSTR pszAssoc,
LPCTSTR pszExtra,
LPTSTR pszOut,
DWORD *pcchOut
);
if (!process) cot<<”Slave:Error opening process\n”;
cout<<”Slave :Waiting for master to finish\n”;
cout.flush();
if (WaitForSingleObject(process,INFINITE)==STAUTE_WAIT_0)
cout<<”Slave:Master completed\n”;
else
cout<<”Slave:Unexpected error\n”;
exit(0);
}