Thread: #ifndef wrapper to reference dll

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    91

    #ifndef wrapper to reference dll

    I'm using Devc++ and am wanting to import/include the msado.dll into my project but i'm getting the error,

    #import is obsolete, use an #ifndef wrapper in the header file
    Code:
    #import "c:\Program Files\Common Files\System\ADO\msado15.dll" \
    can sombody show me exactly how to write this ifndef statement for the above dll.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    In the GNU preprocessor (what Dev C++ uses), the #import directive is not what you think it is.
    In short, you'll have to get your ADO COM the "old fashioned" way.

    gg

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    You could have a look at DispHelper, especially the ADO sample.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. C OpenGL Compiler Error?
    By Matt3000 in forum C Programming
    Replies: 12
    Last Post: 07-07-2006, 04:42 PM
  5. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM