Jump to content

  • Log In with Google      Sign In   
  • Create Account

I'm Starting Windows Programming


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
10 replies to this topic

#1 King   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 October 1999 - 07:08 PM

I just recently learned C/C++ and am currently trying to understand the Windows SDK deal, I don't understand the Variables of a certain type(such as HDC, or HWND) I was hoping if some of you are like me and don't really have much else to do, if you could send me a list of when and what HWND, HBITMAP, HDC, etc... they are. I really have no idea, and the documentation for VC++ doesn't help. I'm making a map maker for an upcomming game called Heathen which is quickly evolving into a classic RPG game like Earthbound, or Zelda. check it out at The MXF webpage... I appreciate whoever would help me out.

P.S. go ahead and reply or send an email, thanks again


Sponsor:

#2 frizb   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 October 1999 - 05:26 PM

The "H" means that it is a "Handle" to the object. For example, an HWND object is a handle to a window. It is actually an integer value being represented by the object since it would be much harder to read and code "01010101110010101". This "Handle" is used so that your program knows what you are referring to in the code. Hope that helps a little.

------------------
Still Learning...


#3 zerovoid   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 October 1999 - 07:09 PM

on the topic...

does anyone know where i can get a good book on windows programming... assuming i already know c/c++..

thanks..


#4 Machaira   Moderators   -  Reputation: 1028

Like
Likes
Like

Posted 29 October 1999 - 02:09 AM

The newest Windows Programming book by Charles Petzold. I'm not sure of the exact title but you can find it by an author search.

#5 Dave Astle   Senior Staff   -  Reputation: 2307

Like
Likes
Like

Posted 29 October 1999 - 04:36 AM

I've heard a lot of good things about the Petzold book (Programming Windows), but I haven't read it. I personally really liked Windows 98 Programming from the Ground Up by Herb Schildt.

#6 mhkrause   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 October 1999 - 05:01 AM

Programming Windows, Fifth Edition by Charles Petzold is probably the best resource for Windows programming.

Check it out at http://www.amazon.com/exec/obidos/ASIN/157231995X/o/qid=941209243/sr=8-2/002-6104071-0091405


#7 King   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 October 1999 - 05:28 AM

I wish i could explain it better, but what i'm looking for is when you use these type variables, like say in a functions i would use HDC in, what does HDC do for that function? why does it need HDC? as opposed to another type variable?

-King

[This message has been edited by King (edited October 29, 1999).]


#8 Splat   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 October 1999 - 10:13 AM

You should check out the MSDN library (I think at least part of it is online at microsoft's site). It basically has everything on Windows programming. HDC is a handle to a device context. In other words, it's a handle to a printer or a screen (generally a screen). It's part of the Windows GDI (Graphics Device Interface) system, and let's you draw graphics and text on a device.

- Splat


#9 Aldacron   GDNet+   -  Reputation: 3270

Like
Likes
Like

Posted 29 October 1999 - 06:29 PM

And all of that is explained in Petzold's book. I think some things can be learned without a book, but there's just too much of the Windows API. Anyone learning Windows programming MUST have Petzold. I still refer to his pages quite often.

#10 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 29 October 1999 - 07:06 PM

try here... http://www.relisoft.com/


#11 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 29 October 1999 - 07:08 PM

try here... http://www.relisoft.com/





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS