Jump to content
  • Advertisement
Sign in to follow this  
muimui1911

C++ class and pointer help

This topic is 4791 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was trying to follow some tutorials from ARPON's "gl_bouundingbox" tutorials in win32 app environments. Apron's website : http://www.morrowland.com/apron/tut_gl.php I want to create a new class...so i do insert->New Class-> type in names but it seems not getting the same effect as the tutorials.... I also want create a pointer that can access the Class for example, I have a class called //////////////// CCamera /////////////// and in my Name.cpp in the global variables part I add //////////////// CCamera objectCamera; //////////////// so when i use that pointer, i just do /////////////// objectCamera.x += 1; //for example /////////////// is there something wrong? or ther are something wrong when i insert the new class? also when i add a public member variable in a class, I type "tVector" as the variable type and whatever names in the names. but it has error, why? it saids like missing storage type or something.... thanks alot [Edited by - muimui1911 on September 3, 2005 12:39:11 PM]

Share this post


Link to post
Share on other sites
Advertisement
well, one thing i see is first, what you showed above is not a pointer

also, your object is supposed to be of type CCamera??

if so then


in the global variables part I add
////////////////
CObject objectCamera;
////////////////



that is wrong it should be


in the global variables part I add
////////////////
CCamera objectCamera;
////////////////



Share this post


Link to post
Share on other sites
sorry, i've got something type wrong,

i meant evern with
//////////////////////
CCamera objectCamera;
////////////////////
it is still wrong

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
CCamera objectCamera; <

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!