Question Locked

Best book to program in Windows?

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I recently learned C++, and I now want to learn how to program windows applications.
I live in Montreal, and there is an incredible selection of books (NOT) on the topic. More precisely, there are about three books on windows 98 programming, two for NT, and none for XP or Vista. The best I could find is a book called "Programming Windows 98/NT unleashed" by Viktor Toth. I don't really like it because it doesn't explain things (or can't get to the point) like hDC or lpsz formaly. Should I keep on reading it?
Alternatively, could anyone suggest a good book I could buy from EBAY, or any comprehensive online tutorials?

Thank you!

10 replies

by slayer_

hDC's are an advanced topic, though not complicated. I cannot personally recommend a book cause I learned that crap through trial and error.

the hDC is the Window ID. the lpsz I think is just the long pointer for a paramater.

I have usually only used these with sendmessage and postmessage commands, in conjunction with findwindow and findwindowex.

So like, to close internet explorer, you would do something like this

const WM_Close as long = {Some hex value, I forget}

dim hdc as long

hdc=findwindow("IEWindowClassName","Windows Explorer 8")

call sendmessage(hdc,WM_Close)

I wrote this in VB6 code cause I am more familure with it, the syntax for C++ is nearly identical.

by rob miners

young fellow syntax . :D Doesn't matter if it's wrong so long as it's all wrong. ;)

by slayer_

FF does a terrible job with my spell checking.

by tony hopkinson

you want a windows API book, most of the examples will be in C/C++ , though more modern ones might go from .Net.

It's more of a cookbook angle than anything else though. You need to pick something to do first, windows is too big to fit in one book to that level of detail.

by slayer_

And learn that way at this point. You are already advanced enough that now you simply need to learn how to find the information you need.

Google is good for that. Use Google to search MSDN, MS's website can't do it.

by gabry hyrule

I looked a bit at the MSDN and it looks okay for quick referencing purpose. Can I find every API/MFC functions' description in it?

by tony hopkinson

and as much as they are prepared to say. There are windows secrets book, basically undocumented features. But if you use them there's even less guarantee than usual that they will keep working.

by vivek26

Please specify what kind of prgramming for Windows you want to do. For example do you want to do application programming or system programming.

This discussion is closed to new replies.