"__declspec(dllexport)" is ok, you don't need to modify the .def file. Or, you can modify the .def file and then, the "__declspec(dllexport)" is useless. The problem is the extern "C", as Albert already said.
Another "trick": if your dll is not really C++, rename the .cpp files to .c and you don't need the extern "C".
Vlad
>Just one more thing... Using the usual "__declspec(dllexport)" didn't make the function visible. I had to put it in the .DEF file.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only