Thread: MSVC++ specific problem

  1. #1
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355

    MSVC++ specific problem

    Hey all,

    I'm looking to dabble a little in some basic DirectX, but I can't really see myself getting far at the moment because I have a problem with the IDE.

    When I use one of my functions or classes, or Win32 ones, the IDE brings up a box that helps me to know what arguments a function takes or the members of a class/struct. But after installing DirectX SDK, when I use something from DX, I get no such help.

    As you can imagine, I don't want to have to refer to the reference material all the time. Incidentally, ZeroMemory() is a win32 function where MSVC++ won't show the args either.

    Thanks, I hope that was clear enough.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    I believe after you compile the project and link the libraries once, after that it will give you tooltips on functions it finds in those headers/libraries. I've never found out exactly how it gets its info, actually -- I've had it continue to give tips for functions which no longer existed, and it may take time to get functions to show up.

  3. #3
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    Hmm... thanks cat, I linked and compiled but nothing going on yet.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    IntelliSense is not perfect. It has severe difficulties looking into the macro-based declarations of the DirectX (and most COM) header files. The result is that you usually don't get the tooltips.

    VC++7 and 7.1 are better than 6 there, but still not perfect.

    IntelliSense also fails when you get template-heavy, like a typedef of a template-dependent typedef (typedef string::iterator iter).
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    Thanks CornedBee, that's a little dissapointing. I'll just have to start saving up for 2003 .NET I suppose.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  6. #6
    Registered User
    Join Date
    May 2003
    Posts
    148
    Klick
    include the d3d or ddraw header file explicitly in the project and they
    should get recognized.

  7. #7
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    Thanks wledge but I am, and always have been, explicitly including d3d9.h
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  8. #8
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    try reinstalling with the libraries in place...
    -LC
    Asking the right question is sometimes more important than knowing the answer.
    Please read the FAQ
    C Reference Card (A MUST!)
    Pointers and Memory
    The Essentials
    CString lib

  9. #9
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    On the subject of DirectX, I'm by no means an expert on C++ or Win32 API, but I was thinking that I probably know enough to look at being able to write graphical games. In the hopes of furthering my C++ and Win32 knowledge while writing the games, because I'm at that point where I can't really think of anything to do in Console. Is this wise or not?

    Sorry to double post but I thought it more appropriate than creating another new thread.

    EDIT: It was a double post when I typed it.
    Last edited by HybridM; 07-29-2003 at 04:45 AM.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  10. #10
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I don't know your actual skill, but you can of course try. I think you will notice soon enough if your skill is insufficient
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 11-07-2005, 11:34 PM
  2. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 01:04 AM
  3. MSVC Tutorial problem - Monochrome Palette
    By colinH in forum C++ Programming
    Replies: 4
    Last Post: 10-30-2002, 03:57 AM
  4. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  5. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM