Thread: C++ Noob Class Confusion

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    DevIL is a member function, and can only be called from an object of that type (i.e. with a dot, as in object.DevIL()).

  2. #2
    CNewbie
    Join Date
    Nov 2005
    Location
    Oz
    Posts
    31
    Quote Originally Posted by tabstop View Post
    DevIL is a member function, and can only be called from an object of that type (i.e. with a dot, as in object.DevIL()).
    Any other hints, I did try doing similar at 2am last night for example.

    GLMain devil;
    devil.DevIL();

    I would of thought even "GLMain.DevIL();" would work why not?
    Why only from it's type? And why can i call it from Initialize GL with just "DevIL();"

    I'm afraid from your example I can't get what Object.DevIL would be in my case. Any more help or suggestions would be appreciated, As i'm sure this is meant to be easy.
    Last edited by Freestyler; 06-04-2009 at 12:31 AM.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by Freestyler View Post
    Any more help or suggestions would be appreciated,
    Download Bruce Eckel's free "Thinking in C++" and start reading.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Creating a database
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 06-10-2007, 01:09 PM
  3. deriving classes
    By l2u in forum C++ Programming
    Replies: 12
    Last Post: 01-15-2007, 05:01 PM
  4. Need help to build network class
    By weeb0 in forum C++ Programming
    Replies: 0
    Last Post: 02-01-2006, 11:33 AM