declaring Winbase.h ?

This is a discussion on declaring Winbase.h ? within the C++ Programming forums, part of the General Programming Boards category; How woudl I declare Winbase.h?...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    731

    declaring Winbase.h ?

    How woudl I declare Winbase.h?

  2. #2
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    rrr hold on, it says....

    Header: Declared in Winbase.h; include Windows.h.
    Library: Use Advapi32.lib.

    so what woudl I do and how do I know and pick wich lib to use?

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,261
    winbase.h is already declared in windows.h, so there is no need to include it. Advapi32.lib is a library that you need to link to in order to call whatever function you are trying to call. How you would link to that library depends on what compiler you are using.

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    I am using dev-cpp if you can answer now.

  5. #5
    Interested Newbie
    Join Date
    Sep 2004
    Location
    Sweden
    Posts
    51
    #pragma comment (lib, "filename.lib")

    That's how I do it!
    Last edited by Tynnhammar; 10-23-2004 at 03:41 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Declaring variables in int main()?
    By Programmer_P in forum C++ Programming
    Replies: 4
    Last Post: 05-12-2009, 03:21 AM
  2. Declaring instances of different implementations
    By dwks in forum C++ Programming
    Replies: 8
    Last Post: 07-16-2008, 12:43 PM
  3. question about declaring global variables
    By Dag_ in forum C++ Programming
    Replies: 2
    Last Post: 04-27-2005, 07:03 AM
  4. different ways of declaring classes
    By confuted in forum C++ Programming
    Replies: 7
    Last Post: 08-19-2003, 09:35 AM
  5. Declaring Class function error?
    By Aidman in forum C++ Programming
    Replies: 8
    Last Post: 06-16-2003, 09:27 AM

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