Visual C++ & DirectX, quick n00b question

This is a discussion on Visual C++ & DirectX, quick n00b question within the Game Programming forums, part of the General Programming Boards category; Using MS Visual C++ 6 as my compiler. Just wondering why function definitions don't show up as is the case ...

  1. #1
    Deo
    Deo is offline
    Registered User
    Join Date
    May 2005
    Posts
    73

    Visual C++ & DirectX, quick n00b question

    Using MS Visual C++ 6 as my compiler.

    Just wondering why function definitions don't show up as is the case with other data structures.

    i.e.

    Code:
    WNDCLASS wndClass;
    wndClass.    // IDE displays all member variables and functions.
    Code:
    IDirect3DDevice9 *g_pD3DDevice9 = NULL;
    g_pD3DDevice9-> // IDE displays nothing.
    Just wondering why this is the case... as it is making learning this stuff much more difficult. Not knowing member variables or associated functions of a data structure.

    Thnx for any assistance..

    P.S. Yes i know I can use msdn.microsoft or whatever its called for documentation, but no broadband so it pain + have to stay online..
    Last edited by Deo; 05-26-2005 at 02:15 PM.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    It's because VC6 shipped with really old DirectX header files. You need to add the DirectX headers you use into your project. Then you will get your expected results.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Deo
    Deo is offline
    Registered User
    Join Date
    May 2005
    Posts
    73

    Thumbs up Hey! Alright!

    Thanks... you cured what ailed me.

    Felt I was asking a dumb question, but now I'm glad I asked!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quick question about types...
    By Elysia in forum C++ Programming
    Replies: 32
    Last Post: 12-07-2008, 05:39 AM
  2. Using 'if' with char arrays or string objects
    By c++_n00b in forum C++ Programming
    Replies: 36
    Last Post: 06-06-2002, 10:04 PM
  3. odd errors from msvc std library files
    By blight2c in forum C++ Programming
    Replies: 6
    Last Post: 04-30-2002, 01:06 AM
  4. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 04:07 PM
  5. Quick question: exit();
    By Cheeze-It in forum C Programming
    Replies: 6
    Last Post: 08-15-2001, 06:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21