Dll Exports Question

This is a discussion on Dll Exports Question within the Windows Programming forums, part of the Platform Specific Boards category; I have been following a tutorial but the problem is the tutorial is for c++.net They say I have to ...

  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,893
    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
    1,620
    You don't have to do that.
    Just forget about doing that and import and call NewDirectDrawCreateEx() rather than DirectDrawCreateEx().
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

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, 08: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, 04:29 AM

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