X
xmardaras
Hello,
I have a missingmethodexception when I try to use it.
I use eVC++ 4.0 and PPC 2003.
I know that the dll is in the same folder that the application is
executed.
I get this exception, incluso even when I return nothin and with no
parameters in the function.
I have declared the function in one of my .cpp:
extern "C" void __declspec(dllexport) __cdecl Recog();
extern "C" void __declspec(dllexport) __cdecl Recog()
{
MessageBox(NULL,TEXT("Hello, I'm inside."),TEXT("Hello, I'm
inside."),MB_OK);
//Do something, The messagebox is not shown
}
In c# I use:
[DllImport("Reconocedor_DLL.dll")]
static extern void Recog();
I have tried with SetLastError, EntryPoint,... but nothing I have the
same exception.
Please help.
Best Regards.
I have a missingmethodexception when I try to use it.
I use eVC++ 4.0 and PPC 2003.
I know that the dll is in the same folder that the application is
executed.
I get this exception, incluso even when I return nothin and with no
parameters in the function.
I have declared the function in one of my .cpp:
extern "C" void __declspec(dllexport) __cdecl Recog();
extern "C" void __declspec(dllexport) __cdecl Recog()
{
MessageBox(NULL,TEXT("Hello, I'm inside."),TEXT("Hello, I'm
inside."),MB_OK);
//Do something, The messagebox is not shown
}
In c# I use:
[DllImport("Reconocedor_DLL.dll")]
static extern void Recog();
I have tried with SetLastError, EntryPoint,... but nothing I have the
same exception.
Please help.
Best Regards.