Advertisement

Damnit I need to learn windows programming

Started by August 02, 2000 06:13 PM
8 comments, last by Zredna 24 years, 4 months ago
Until now I have jumped over all the windows prog. stuff by downloading NeHe''s source for a standard OpenGL program and just added things to that because I hate windows programming, but now it seems like I don''t have much of a chose. You see, the problem is that I need a level editor for my game I was thinking about something like WorldCraft. So I''m asking if anyone got some url''s to some pages that will learn me enoegh to make that. And to all the Newbie-Killers(TM) ;-) out there I know it will be a big step for a non-windows programmer to make a windows-WorldCraft like map editor, and I do not think I just can read a tut and then program a super-mega-magic-xxxxl-monster map editor. Any windows programming links are welcome Thankz Zredna
well, its not an online link, but for
windows programming, the book

Programming Windows
5th Edition
Charles Petzold
Microsoft Press

is a damn good windows programming book.
IF you need to do that kind of thing to
your poor computer...

I used it as a textbook for my college
courses... it helped a ton.

Cloak
cloakwww.theblackroom.ca
Advertisement
Here is a link to the book cloak mentioned. While not a step-by-step tutorial, you can browse some sample chapters there (and at other online book retailers). It''s worth a shot if you''re really stuck.
------When thirsty for life, drink whisky. When thirsty for water, add ice.
Goto

www.gamedev.net

They have lots of good windows programming stuff in their resource sections.....

Eck

EckTech Games - Games and Unity Assets I'm working on
Still Flying - My GameDev journal
The Shilwulf Dynasty - Campaign notes for my Rogue Trader RPG

There are some good tutorials on Flipcode, they might be a bit confusing, but if you understand NeHe''s Win tutorial then you should get the hang of this as well.

http://members.xoom.com/3dcoding/win32/index.html

http://www.flipcode.com/tutorials/tut_windows01.shtml

http://www.flipcode.com/tutorials/tut_mdialogs.shtml

------------
- outRider -
If you''re doing a level editor and are comfortable with C++, I''d suggest using Microsoft Foundation Classes (MFC).
Advertisement
Thanks for the links and everything else. Just keep posting them I really need all the information I can find. I have read some of the things and can now tell you more specific what i want. Info about: dialog boxes, how to detect where the mouse is when a mousebutton is clicked, how to open and save files.


Graylien: I do not want a step-by-step tutor that explains how to do everything, I want some articles, tutors, books or anything that can give me some tools to work with.

Stoffel: I do not want to use MFC. I have heard alot of bad things about it. The only advantage is that it is easy. I know it might have sounded like I just want to jump easily over the hard windows programming, but I not in this case. I might find use for real windows programming knowledgen later when I want to add something to my editor or maybe even write something else in windows.

Zredna
Your loss. MFC gets a bad name, quite unfairly. It''s not good for writing games. It''s great for writing editing programs like you describe.

If you really want to learn windows programming, Petzold is the way to go (as cloak said). I''m re-reading it right now to try to come to better grips with message routing. However, his boiler-plate "Hello world" program takes two pages of text, whereas the MFC equivalent requires adding about 3 lines of code to the SDI template. But hey, it''s your fingers that will suffer.
I''ll be building my editor in to the game. If I was doing a solid geometry engine however I''d just use the .map format as the import format, provide a compile that''ll create my own style data files and just get users using the existing editors. That way I get to spend my time coding the game rather than replicating the work of other more experienced coders.

You might also want to look around. I recall reading about some quake2 level editors that have released source, I think it was BSP.

The only limitation of using someone elses engine is adding your own bits, thought many have plugin systems that allow you to do ''extra stuff''. For example in my case my engine is landscape based, I''d have a hard time making their editor work with large heightmaps...

gimp
Chris Brodie
Zredna, it''s good to see that you''re willing to sit down and learn the stuff, not skip over fundamentals to get to a final result too quickly (and by skipping over fundamentals I''m not referring to using MFC, I''m referring to the type of people who like to copy/paste the code from tutorials that they don''t even understand).

When I said "it''s not a step-by-step tutorial" I probably should have said something more like "Here''s a link to the book on Windows Programming. It''s really all you need to start." I only worded it that way because you said you wanted links to tutorial sites, and usually most people who are looking for URLs and tutorials on the net are not looking for a link to an expensive 1500 page book .

That having been said, you must first of all go to MSDN. Once there, you''ll find the Platform SDK section helpful, especially the parts on the Win32 API.
------When thirsty for life, drink whisky. When thirsty for water, add ice.

This topic is closed to new replies.

Advertisement