Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C/C++ Plugin issues

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development
View previous topic :: View next topic  
Author Message
PoZHx
How do I cheat?
Reputation: 0

Joined: 27 Jun 2009
Posts: 7

PostPosted: Sun Nov 14, 2010 11:27 am    Post subject: C/C++ Plugin issues Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source -> Plugin development All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites