john
john

Reputation: 3

How to export functions that have no name from a dll

I have a .dll I want to statically link to my C++ exe. I have created a header I believe to contain accurate function signatures, so I need to build a lib file from my dll. I use dumpbin to get the names of the functions in the dll, but most functions are nameless and have only ordinals. What should I put in my .def file then?

I have managed to find few batch scripts that create lib file from dll but they just ommit those nameless functions.

An in depth tutorial on lib, def, obj files and linking that goes to the bottom of the matter and is easy to follow would be greatly appreciated from many people I think, although I will be happy to just solve my problem aswell.

I am using Visual C++ Express 2010.

Upvotes: 0

Views: 616

Answers (1)

SoronelHaetir
SoronelHaetir

Reputation: 15162

If the functions are only exported by ordinal (that is each export is decorated with NONAME) then the name doesn't matter you can assign whatever name you like. Of course you better know what each ordinal is supposed to be.

Upvotes: 2

Related Questions