"__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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement