Can anyone please tell me how to declare this unmanaged function in my VB.NET project, I have been at it for hours and I am getting nowhere.
The integer's and even the struct I can probably manage, but I am having real problems with pointers and the callback.
The function in the external DLL
Thanks
The integer's and even the struct I can probably manage, but I am having real problems with pointers and the callback.
The function in the external DLL
VB.NET:
int __stdcall SolveEx(
unsigned int uiWidth,
unsigned int uiHeight,
char* pcBoard,
char* pcSolution,
unsigned int uiSolutionBufferSize,
PluginStatus * psStatus,
PLUGINCALLBACK * pc
);
struct PluginStatus {
unsigned int uiSize,
unsigned int uiFlags,
__int64 i64MovesGenerated,
__int64 i64PushesGenerated,
__int64 i64StatesGenerated,
char szStatusText[256],
unsigned int uiPluginTimeMS
};
int __stdcall PluginCallback(
void
);
Thanks