how do i include ddraw.lib

This is a discussion on how do i include ddraw.lib within the Game Programming forums, part of the General Programming Boards category; how do in include ddraw.lib to my game adding #include <ddraw.lib> isn't working im using vc++6...

  1. #1
    Unregistered
    Guest

    how do i include ddraw.lib

    how do in include ddraw.lib to my game adding #include <ddraw.lib> isn't working im using vc++6

  2. #2
    Registered User dirkduck's Avatar
    Join Date
    Aug 2001
    Posts
    428
    Well, you dont 'include' library files (.lib) you link them to your program...so if your running MSVC++ then go to project>settings>link>object/library modules - and add ddraw.lib then in your project use inlcude <ddraw.h> or whatever the header is as i dont use directX...cheers

  3. #3
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    well, #pragma varies from compiler to compiler, but try

    #pragma comment(lib, "whatever.lib") //no semicolon!

  4. #4
    Unregistered
    Guest
    okay thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 04:45 AM
  2. dont konw what to do next.
    By negevy in forum C Programming
    Replies: 29
    Last Post: 09-09-2005, 04:06 PM
  3. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 01:21 PM
  4. #includes don't seem to be working
    By Inquirer in forum C++ Programming
    Replies: 12
    Last Post: 08-05-2002, 06:38 PM
  5. MFC Assertion Failure
    By maxthecat in forum Windows Programming
    Replies: 5
    Last Post: 08-01-2002, 10:58 AM

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