开发者

How do you add a new form to an existing c++ project?

开发者 https://www.devze.com 2023-03-09 22:57 出处:网络
I want to add a new form which loads at startup on a开发者_如何学编程n existing command line c++ project , how do i go about this ?right click on project->add->New Item->select UI under Visual c++

I want to add a new form which loads at startup on a开发者_如何学编程n existing command line c++ project , how do i go about this ?


right click on project->add->New Item->select UI under Visual c++

You have to compile your app as CLR, to use win forms. Then from your exe's startup code, instantiate this form's object and then use objDlg->ShowDialog(). Its pretty much same

And clr option may not be compatible with MTd and few others(?)

0

精彩评论

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

关注公众号