Updated: 1/22/2004; 8:04:37 PM.
ronpih I guess...
Your guess is as good as mine...
        

Monday, March 11, 2002

It seems that even though there is no support for Managed C++ projects using the Windows Forms designer there is a whole directory of Managed C++ Windows Forms Sample Apps.  It's kind of hokey, though, that every one of them brings up a console window and then the Windows Forms window.  Here's how to fix this:

Bring up the project properties dialog and select the configuration(s) you want to fix.  Then go to the Linker System node.  Set the SubSystem setting to "Windows (/SUBSYSTEM:WINDOWS)".  Then go to the Linker Advanced node.  Set the Entry Point setting to the version of main() that the program uses (for these samples that will be "main").

Rebuild the sample and run it.  Viola! No console window.


8:00:51 PM    comment []

© Copyright 2004 Ronald Pihlgren.
 
March 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Feb   Apr

Weblogs
Microsoft Testers
VC++ Bloggers
Links
Note:This is a personal weblog. All opinions expressed here are mine alone.


Click here to visit the Radio UserLand website.

Subscribe to "ronpih I guess..." in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.