Question

__declspec(dllexport) public void CallMe(wchar_t *p);

Le dll compilé renomme la procédure "appelez-moi" à "? Appelle-moi @@ ZAPPA_G @ Z". Comment puis-je éviter ce comportement?

Était-ce utile?

La solution

Vous avez besoin d'un bloc extern "C" {} autour de vos définitions pour éviter le mutiler nom C ++.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top