Thread: How to add def file in devc++

  1. #1
    Registered User
    Join Date
    Jun 2003

    How to add def file in devc++

    Well i'm sure this is a very simple answer but i can't work it out or find any info on it.

    I am using devc++ 5 and need to add a def file to the project.

    I am trying to create a dll that can be used with a VB app, but i keep on getting 'cannot find entry point in dll' error, which i've found out is because i dont have the def file incuded.


  2. #2
    Registered User
    Join Date
    Apr 2004
    it is a snap
    if u are not using _decspec(dllexport) before each of your
    functions ,u should use .def (definition module )file which at least
    should be this wa :

    EXPORTS MyFunc1
    and so on .
    read in msdn for more info

    to export with .def u should note linker in setting to export with .def .
    to verify your exported function u can use
    dumpbin utitily in vs/bin directory

    c:\>dumpbin -exports dll1.dll

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  3. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM