|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
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.
|
|
Back to top |
|
|
Dark War Lord How do I cheat? Reputation: 0
Joined: 03 Feb 2024 Posts: 1
|
Posted: Sat Feb 03, 2024 1:47 am Post subject: Re: C/C++ Plugin issues |
|
|
PoZHx wrote: | 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. |
PM me if you see this.
Been searching for you.
/An Old Friend
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|