Je veux appeler une dll win32 à partir de c# et j'ai une erreur AccessViolatioonException.
Voici la méthode en C++ :
long __stdcall VBCSRXPut(LPCTSTR psReference, LPCTSTR psDomain, LPCTSTR psFilePath)
Voici mon appel en c# :
[DllImport("csrxdlld.dll")]
static extern int VBCSRXPut
(
string psReference,
string psDomain,
string psFilePath
);
Une idée?
Partager