Click to See Complete Forum and Search --> : How to create a DLL


a_fischetti
May 10th, 1999, 08:54 AM
Hi,
I want to put my functions myFunc1(), myFunc2(),... into a DLL.
I wrote the code for all of them in myfunc.c file, but I don't know how to create a myfunc.dll which should contain my functions.
Can you help me?

Thanks in advance.
Antonio.

_______

indika
May 10th, 1999, 09:06 AM
from VC
File->New
Projects Tab
enter name for project
select MFC appwizard dll
OK
add your .c file to project
add this line to each function that you want exported
extern "C" __declspec( dllexport )
compile.