I've searched the net for hours now to find a description of the syntax of DEF-Files. (Wotsit.org haven't got any information about it and also with google I wasn't able to find anything useful).
Any links for me?
Posted on 2002-01-27 14:48:35 by Marilyn
If you want a .def to build an import library from it can look like this:
-- --------------------------------------------------
NAME MyLib.dll

EXPORTS
MyFunction
MyOrdinalOnlyFunction @ 1 NONAME
----------------------------------------------------
then use link to build lib like this:

LINK -LIB /MACHINE:IX86 /DEF:MyDll.def /OUT:Mydll.lib /NOLOGO


If you on the other hand just want to make a program with multiple entrypoints (such as a dll usually)
you can just put this in your .def file

---------------------------------------------------------
EXPORTS
MyFunction
MyOrdinalOnlyFunction @ 1 NONAME
---------------------------------------------------------

the @ 1 simply says that the particular function should be exported as ordinal number 1 and the noname thingy means that it shouldnt have a name.
The other function will be exported at any non taken ordinal number and have the name "MyFunction"
Posted on 2002-01-27 16:58:35 by Noodle