Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32 Application or Win32 Console Application

Status
Not open for further replies.

nytyme

Programmer
Jan 8, 2001
19
US
I have seen alot of people recommending using Win32 Applicaitons as opposed to Win32 Console Applications. Why is this so? Whenever i try to compile a Win32 Application on NT4 VC++ 5 and 6, I get "unresolved external symbol _windows@16". doesn't this mean its 16 bit and the compiler doesn't support it?

how can i prevent that from happening? how can i just compile a nice Win32 App?

thanks
 
If you are referring to the Visual C++ App Wizard project type Win32 Application, then that builds a bare bones Windows GUI project where you are expected to supply the main window creation and message pump. If you don't supply those features you will receive link errors.

If that is what you desire I suggest you read through the Visual C++ help topic on that App Wizard project type carefully.

Good luck
-pete
 
Thanks Pete,

I ran the App Wizard and it finally gave me a working product.

Could I trouble you for an example of how to grab the commandline arguments?

Thanks again,
nytyme
 
Nevermind, the answer was staring me right in the face "lpCmdLine".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top