Thread: how do i include ddraw.lib

  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,227
    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, 03:45 AM
  2. dont konw what to do next.
    By negevy in forum C Programming
    Replies: 29
    Last Post: 09-09-2005, 03: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, 05:38 PM
  5. MFC Assertion Failure
    By maxthecat in forum Windows Programming
    Replies: 5
    Last Post: 08-01-2002, 09:58 AM