vc如何调用.net的程序

nuaalfm 2005-04-04 04:07:10
如题
...全文
72 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
conan19771130 2005-04-05
  • 打赏
  • 举报
回复
void CMainFrame::ExecFile(CString &strFile)
{
SHELLEXECUTEINFO ShExecInfo = {0};

ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = (LPCSTR)strFile;
ShExecInfo.lpParameters = "";
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL;

ShellExecuteEx(&ShExecInfo);
}
就是调用其他程序啊,关键要有framework
nuaalfm 2005-04-05
  • 打赏
  • 举报
回复
不会吧,这应该是个比较通用的问题啊
leiaming 2005-04-04
  • 打赏
  • 举报
回复
没人来救你了,快点给分吧,你...

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧