PoZHx How do I cheat?
Reputation: 0
Joined: 27 Jun 2009 Posts: 7
|
Posted: Sun Nov 14, 2010 11:27 am Post subject: C/C++ Plugin issues |
|
|
Hello,
I'm wanting to devolop Plugin but your sdk doesn't seem to be working as expected.
I seen you have source example in C called
"example-c" in Cheat Engine\Plugins\
All the example plugins load up fine expect for the C coded plugin.
Try it for yourself. I used CheatEngine 5.6.1.
Anyways i tried your SDK myself in a blank dll and it still crashes.
Code: | #include <windows.h>
#include "cepluginsdk.h"
BOOL __stdcall GetVersion(PPluginVersion pv , int sizeofpluginversion)
{
pv->version=CESDK_VERSION;
pv->pluginname="C Example v1.2 (SDK version 3: 5.6+)"; //exact strings like this are pointers to the string in the dll, so workable
return TRUE;
}
BOOL __stdcall InitializePlugin(PExportedFunctions ef , int pluginid)
{
return TRUE;
}
BOOL __stdcall DisablePlugin(void)
{
return TRUE;
}
bool WINAPI DllMain(HINSTANCE hDLL, DWORD dwReason, LPVOID lpReserved )
{
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(NULL, "Dll Loaded into CE", "PoZHx", MB_OK | MB_ICONHAND);
// if( CreateThread( NULL, NULL, ( LPTHREAD_START_ROUTINE )DialogThread, NULL, NULL, NULL ) == 0)
// MessageBoxA(NULL, "Failed to initialize thread!", "PoZHx", MB_OK | MB_ICONHAND);
}
return 1;
}
|
I've exported the functions too i've checked that in LordPE EAT to see if they were exported. So i'm totally confused.
EDIT:
FIXED. Compiler exported GetVersion Windows API. Lol.
|
|