I've spent quite some time trying to get a DLL file to work by using the Interop.Call function, but it just won't accept it.
Here's what I have so far.
c code:
#include "stdafx.h"
#ifdef __cplusplus // If used by C++ code,
extern "C" { // we need to export the C interface
#endif
__declspec(dllexport) int __stdcall GetScreenSize(int avar)
{
//some code here
return 1;
}
#ifdef __cplusplus
}
#endif
I just want to get the dll to work so I can use it, but messenger plus will not call the function.