Author Topic: DLL with __stdcall and def-File  (Read 5090 times)

Pellaeon

  • Guest
DLL with __stdcall and def-File
« on: December 07, 2005, 08:46:12 pm »
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

Offline Frank3000

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: DLL with __stdcall and def-File
« Reply #1 on: December 08, 2005, 02:53:03 pm »
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

  • Guest
Re: DLL with __stdcall and def-File
« Reply #2 on: December 08, 2005, 06:01:51 pm »
THX, works fine  :D