开发者

Win32 Console application or CLR -->windows form application?

开发者 https://www.devze.com 2023-02-05 00:44 出处:网络
I have to have a form as a gui,but i also need to write using win32 API as i need to create another process the moment the application is launched...

I have to have a form as a gui,but i also need to write using win32 API as i need to create another process the moment the application is launched...

I created Win32 console-->empty project..then there was an option to add windows form as UI...Is it possible????...as i have chosen the base project to 开发者_如何学Pythonbe win32 console application.

But i really need the form in the application.


C++/CLI is perfectly able to show a Windows Form in a console program, just as a windows console program is perfectly allowed to call CreateWindow. However, if you choose console as the output file mode then the console window is still going to show up to your user in addition to whatever forms you create.


You don't need to use the bare Windows API to create processes. See System.Diagnostics.Process.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号