Thread: Dll Exports Question

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    10

    Dll Exports Question

    I have been following a tutorial but the problem is the tutorial is for c++.net

    They say I have to edit the ddraw.def file and add
    Code:
    LIBRARY	"ddraw"
    EXPORTS
    	DirectDrawCreateEx = NewDirectDrawCreateEx
    How would I do it in msvc++?

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Moved to Windows Programming.

    The above is valid for Microsoft's C++ compiler and linker, not specific to C++/CLI. In fact, I don't think it would work in /CLI.
    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

  3. #3
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    You don't have to do that.
    Just forget about doing that and import and call NewDirectDrawCreateEx() rather than DirectDrawCreateEx().

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dll Injection Question
    By zenox in forum C Programming
    Replies: 13
    Last Post: 03-15-2008, 10:54 AM
  2. dll and classes question
    By Rune Hunter in forum C++ Programming
    Replies: 2
    Last Post: 12-17-2005, 09:26 PM
  3. Replies: 1
    Last Post: 09-18-2005, 09:06 PM
  4. Using class with DLL
    By greg2 in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2003, 05:24 AM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM