C++ Learning Community Forum
August 01, 2010, 03:13:33 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Hello. Smiley
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Help in Understanding Direct X  (Read 1316 times)
crazyben21
N00b!!1
*
Posts: 11



View Profile
« on: May 16, 2008, 08:52:53 PM »

Hi, I'm back. It has Been a long time. I'm back and now I need understanding Direct X Programming. I'm a total noob at this.

I need understand things I see in the code. Things like words and such that are in the code. Like what the word "Handles" Means in Direct X programming code? I attached the file of the code I got from "APRON TUTORIALS PRESENTED BY MORROWLAND".

I will probably need a Direct X Dictionary. If I have any other question I will post in this very topic I posted.

I print this file at home and stare at it trying to understanding it. This is Totally different than just c++ console programming.


Thank you
Benjamin


* Main.cpp (16.1 KB - downloaded 56 times.)
Logged
ih8censorship
Megalomaniac!!!
Administrator
C++ guru
*****
Posts: 1236



View Profile
« Reply #1 on: May 16, 2008, 09:36:06 PM »

Is there syntax there you don't understand or are there just types? msdn.com would be a good place for just looking at what the different types and functions were. As for the syntax, you do know how to work with pointers and how pointers to structures and classes have their member data accessed with the -> operator correct? What compiler are you using? I ask that because some things are vc++ specific there.
Logged

PC==perfect_companion

Knowledge cannot come packaged and predigested; it must be chewed over carefully before swallowed.

What have you tried?
crazyben21
N00b!!1
*
Posts: 11



View Profile
« Reply #2 on: May 18, 2008, 05:15:23 AM »

yes I know all that you said. But I mean what do certain words means and what it does.

Like word likethis:

DWORD,
hInstance,
HWND,
HDC

In a c++ comment it "Holds Our Window Handle". What does Window Handle is?

Some wierd words i never seen before.

I hope you understand.

Thank You
Benjamin
Logged
adeyblue
Dr. of C++ology
****
Posts: 653

Taming the turntables a beat at a time


View Profile WWW
« Reply #3 on: May 18, 2008, 11:11:01 AM »

The full list of Windows types is here. They're mostly typedefs for standard types or each other so that your code is insulated from changes and will still work if Microsoft decide to change a certain thing from really being a char to really being an int for example.
Logged

crazyben21
N00b!!1
*
Posts: 11



View Profile
« Reply #4 on: May 19, 2008, 04:09:20 AM »

The full list of Windows types is here. They're mostly typedefs for standard types or each other so that your code is insulated from changes and will still work if Microsoft decide to change a certain thing from really being a char to really being an int for example.

Thank You very much adeyblue.

That help me a lot to understand were they came from. Nice!

One last thing though. I was looking link you send and i had just one question about it.

The type HANDLE comes from:
My question is why Microsoft gave word HANDLE. What significant it suppose to have. When I see the word HANDLE it makes me think of a door, car or anything else concrete that has a handle for you to push and pull. A handle is something that you grab.
Code:
typedef PVOID HANDLE

And ofcourse PVOID AND HANDLE hold and pointer(address) of any type.
Code:
typedef void *PVOID;

I think I'm getting an understanding of it.

Thank You
Benjamin
Logged
adeyblue
Dr. of C++ology
****
Posts: 653

Taming the turntables a beat at a time


View Profile WWW
« Reply #5 on: May 19, 2008, 12:52:34 PM »

Handle is also a computing term
Logged

*brammie*
my rank:
C++ Freak
***
Posts: 309



View Profile WWW
« Reply #6 on: May 19, 2008, 03:47:22 PM »

you need to learn directX?
try http://www.directxtutorial.com/
it helped me a lot when i learned dx
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!