Tag: launch

从C ++启动C#应用程序并在该应用程序上执行任务

我已经阅读了这篇文章并完成了我的C#应用​​程序的开放。 我的C#应用​​程序打开一个文件夹并绘制图形。 我是否有可能告诉我的C#应用​​程序从C ++打开哪个文件夹,然后一旦看到图形并且C#程序关闭,它就会返回到C ++应用程序。 编辑:谢谢马修,我得到了它的工作。 关于我的CreateProcess lpCommandLine变量的另一个查询:(下面是代码) CString sFolderPath = “C:\Documents and Settings\…”; int nStrBuffer = sFolderPath.GetLength() + 50; LPTSTR szParam = _tcsdup(sFolderPath.GetBuffer(nStrBuffer)); nRet = ::CreateProcess(szCmdline,// pointer to name of executable module szParam,// pointer to command line string NULL,// pointer to process security attributes NULL,// pointer to thread security attributes FALSE,// handle inheritance flag […]