Launch C# .Net Application from C++

大兔子大兔子 提交于 2019-12-02 03:13:01

问题


Is it possible to launch a C#.Net (2.0) application from an application written in C++???

Thanks,

EDIT: Cool - so I just have to know where the app is:

LPTSTR szCmdline = _tcsdup(TEXT("C:\\Program Files\\MyApp -L -S"));
CreateProcess(NULL, szCmdline, /* ... */);

回答1:


You can launch any EXE using CreatePocess or ShellExecute API. ( including C#.Net)




回答2:


Yes - for example using system function or CreateProcess \ CreateProcessW \ CreateProcessA [or fork+ exexif you use *nix + mono]



来源:https://stackoverflow.com/questions/2843248/launch-c-sharp-net-application-from-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!