Advertisement

Very Dumb Question about win32

Started by May 24, 2002 11:24 AM
6 comments, last by gamesmaster2 22 years, 5 months ago
I know this is going to sound stupid but for the life of me I can''t remember how I start a new win32 application.I''ll go to file then go to New ,Choose win32 application,then it ask what I want and I remember choosing empty project the last time I did one but I can''t figure out what to do beyond that.Can anyone refresh my memory??
The road to hell is paved in good intentions
After that comes roughly 160 lines of code, which I''m too lazy to provide at the moment. Maybe when I get out of school.

-----------------
"Who the hell wants to hear actors talk?" - H. M. Warner
"Everything that can be invented has been invented." - Charles H. Duell
"I think there is a world market for maybe five computers." - Thomas Watson, Chairman of IBM (1943)
-----------------"Who the hell wants to hear actors talk?" - H. M. Warner"Everything that can be invented has been invented." - Charles H. Duell"I think there is a world market for maybe five computers." - Thomas Watson, Chairman of IBM (1943)
Advertisement
add a file to the project? define WinMain and go at it.

or do a hellow world app.


[My site|SGI STL|Bjarne FAQ|C++ FAQ Lite|MSDN|Jargon]
Ripped off from various people

[edited by - wild_pointer on May 24, 2002 12:30:25 PM]
[size=2]
1. Open a text file

2. Put in it this code:


  int APIENTRY WinMain(HINSTANCE hInstance,                     HINSTANCE hPrevInstance,                     LPSTR     lpCmdLine,                     int       nCmdShow){    return (0);}  


3. Save it as whatever.cpp

4. Include the file in your project

5. Press F7, to compile it, F5 to execute

6. See your program do nothing.

What to do next is left as an exercise for the reader. :-)

Yeah, I could write a tutorial, don''t you think? ;-)

Now seriously, if your have a more specific question, please ask it.

Good luck!
Well the PROBLEM is that I get an empty project devoid of even a .CPP file for me to write on.So how do you get a file up.They use to have a tutorial on win32 at GameTutorials but I didn''t see it when I checked.I''m not trying to take the easy way out or nothing I just want to get started but for some reason I can''t remember how to go any further.

The road to hell is paved in good intentions
The road to hell is paved in good intentions
Assuming you''re using VC++, click on Project->Add To Project->New, then on the File Tab, choose C++ Source File, name it whatever you want in the text box on the right, and hit OK. It will load it into the project for you.
Advertisement
Tanks everyone.What I was having was what we call down here a "BrainFart".I did it before but for the life of me I couldn''t remember what I did last time.I got it .I got this new book Programming RolePlaying Games with Direct X.So far it looks like it''s a pretty good book but has anyone else read it yet.Did it help you out alot??

The road to hell is paved in good intentions
The road to hell is paved in good intentions
guh, I thought my math teacher was the only person who used that expression ("brainfart". I HATE IT.

This topic is closed to new replies.

Advertisement