News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

DLL with __stdcall and def-File

Started by Pellaeon, December 07, 2005, 08:46:12 PM

Previous topic - Next topic

Pellaeon

Hello,

I have a DLL and my export functions use the __stdcall-Convention. I want to export my function names.
Because it's stdcall it doesn't work to do it with extern "C". So I think I need a def-file

How can I use the def-File? I created a new file with the ending "def" and I wrote the function names into the export-section.
But the compiler does not use my def-file. What must I do?

I use the Visual C++ Toolkit 2003 for compiling

Frank3000

Hi,
put
/DEF:"path_where_the_file_is/mydeffile.def"
at
Project->Build options->Linker->Other linker options

Frank
Klingon multitasking systems do not support 'time-sharing'. When a Klingon program wants to run,
it challenges the scheduler in hand-to-hand combat and owns the machine.

Pellaeon