all groups > visual c > january 2007 >
You're in the

visual c

group:

Exporting functions in a DLL without the = _FunctionName


Exporting functions in a DLL without the = _FunctionName Bruce
1/30/2007 8:37:44 PM
visual c:
I need to write a DLL for a Domino server. It is currently not working
and I believe the problem might be related to how the DLL was compiled.
I did a Dumpbin of a sample DLL that came from Notes.

The dump looks like this:

ordinal hint RVA name

1 0 00001014 FilterInit
2 1 00001005 HttpFilterProc
3 2 0000100F TerminateFilter



When I do a DumpBin of my DLL, it looks like this:


ordinal hint RVA name

1 0 00001000 FilterInit = _FilterInit
2 1 00001070 HttpFilterProc = _HttpFilterProc
3 2 00001050 TerminateFilter = _TerminateFilter


Notice the equals and the underscore character.

I am using VC8.

I am declaring the function with extern "C" __declspec(dllexport)
MyFunction()

I tried a DEF file as suggested in a post I found on a search but that
did not work.

How do I compile the DLL without the = _FunctionName ?



--
Bruce E. Stemplewski
GarXface OCX and C++ Class Library for the Garmin GPS
Re: Exporting functions in a DLL without the = _FunctionName Bruce
1/30/2007 9:07:28 PM
Oops! Wrong VC newsgroup. Sorry!





--
Bruce E. Stemplewski
GarXface OCX and C++ Class Library for the Garmin GPS
AddThis Social Bookmark Button