Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Any books you'd recommend on Windows programming?

Author
Message
AutoBot
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Everywhere
Posted: 7th Apr 2011 04:20 Edited at: 8th Apr 2011 02:38
I'm hoping to start learning some Windows SDK stuff so that I can do graphics with the OpenGL API, etc. I've found two good ones I currently plan to buy:

Windows System Programming (4th edition) (Johnson M. Hart): http://www.amazon.com/Windows-Programming-Addison-Wesley-Microsoft-Technology/dp/0321657748/ref=ntt_at_ep_dpi_1#_

Programming Windows (Microsoft Programming Series) (Charles Petzold): http://www.amazon.com/Programming-Windows-Microsoft-Charles-Petzold/dp/157231995X

Hart seems to talk a lot about the internals of Win32 programming, whilst Petzold talks moreover about the UI concepts. One of my concerns is that Petzold's book is rather... old. 1998 to be specific. Should I go with it for UI stuff anyway or find something else?
Any other suggestions would be good too. I would go into the MFC classes (granted they don't bog down performance too much), but I'd like to learn the fundamentals in Win32 first, if I can.

EDIT: changed Hart's book from 3rd to 4th edition, I had a link to the older edition.


PrimalBeans
14
Years of Service
User Offline
Joined: 14th Oct 2010
Location: The sewer.... hunting alligatiors.
Posted: 7th Apr 2011 09:20
URmmmm.... tell us why you might want to learn windows programming on a game programming forum and we might be able to give you a better answer... honestly im not trying to be a jerk... according to my programmer for our project he knows minimal windows programming and is killer at alll sorts of game programming. So heres the thing let us know whyat you need to learn exactly and we will help you... your books sem solid so just stick to those otherwise.

Otherwise your good for anything if you just learn the msg loop and how dx reacts with winblows. LOL

Interplanetary Funk
15
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 7th Apr 2011 12:22
I'd go with Charles Petzolds book. It's a bit out of date (goes on about GDI when MS recommends all new software to use direct2D) but is still considered the bible of windows programming.

Get on my level
AndrewT
18
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 7th Apr 2011 17:35
You don't need to become an expert on the Win32 API to program with DirectX and OpenGL (and with OpenGL you can just use GLUT anyway)--a tutorial like this one should do:

http://winprog.org/tutorial/

If you're more serious about Windows programming then I've heard that the Petzold book you posted is probably the best choice.

i like orange
Interplanetary Funk
15
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 7th Apr 2011 18:54
Yeah, if you're programming a game using DirectX or OpenGL the only bit of the windows API you need to learn is how to create the window and set it up so it actually closes, I'm currently studying DirectX and that's all I've needed as DirectX handles all inputs and drawing commands etc.

Get on my level
AutoBot
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Everywhere
Posted: 8th Apr 2011 02:36 Edited at: 8th Apr 2011 02:44
Yeah, I'm using OpenGL currently, freeglut for all the Windows specifics, glew for the extensions, etc. My goal is to have a game engine to run on Windows, but games that will support handheld devices (Android, iOS, etc), Windows, Mac, and so forth. The utilities (map editor, asset creation tools, profiler, scripting, console, resource manager, etc) will probably be Windows specific for my machine, but the target-specific code will be recoded per-platform (for things like the Java Android dev kit, C++ WinSDK, XCode, etc). The engine itself will supply data for the code to work on and compile. My goal is for it to require the least amount of recoding possible, such as using cross-platform APIs like OpenGL.

So I probably need to know about the GUI fundamentals, DLLs, reading/writing files, etc. Petzold's book seems to cover all that to a basic extent. Hart's book is moreover a little more arbitrary for me, it covers the performance-specific aspects of the WinSDK. I've edited the link to display the 4th edition instead of the 3rd.

But I know what you guys mean, an essential game would just require 3D operations overall. I'm hoping that a game engine that I know inside-out will help ease this process in the long run, though. So I suppose my question now is... is Hart's book worth the read? Petzold's looks more well known and essential, so I'll probably try that first unless there's a more modern variation of it around. Any other books suggestions is appreciated, too.

AndrewT - I'll read that tutorial, looks good so far.


AutoBot
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Everywhere
Posted: 12th Apr 2011 02:20 Edited at: 12th Apr 2011 02:21
Okay guys, I'm sorry about bumping this, but... Petzold's book is HUGE. About 1500 pages. Just got it in the mail.

Guess I'm gonna learn quite a lot over the next year or so of reading this.


Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 12th Apr 2011 02:37
I suggest this book:



The Internet: Where men are men, women are men, and children are federal agents
AutoBot
15
Years of Service
User Offline
Joined: 25th Sep 2009
Location: Everywhere
Posted: 12th Apr 2011 02:43
Yeah that's another good idea too, I'll need to know it for iOS development.

I need to get a mac first, though... I guess there's the slightly cheaper powermacs, though.


Login to post a reply

Server time is: 2025-05-26 00:24:57
Your offset time is: 2025-05-26 00:24:57