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 


[DELPHI] AC //need help with dynamic dll load
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Tue Jul 24, 2007 7:40 pm    Post subject: Reply with quote

ok now I get this error

source:
Here

good night and thanx!
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Tue Jul 24, 2007 7:42 pm    Post subject: Reply with quote

You get the error because MZBOT2.DLL DOES NOT EXPORT GETVERSION SO YOU CAN'T CALL IT!
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Wed Jul 25, 2007 5:29 am    Post subject: Reply with quote

so ok. I removed the Label1.Caption thing.
Code:

procedure TForm1.loaddll(Sender: TObject);
var handle: THandle;
WindowsVersion: TProc;
begin
  handle := LoadLibrary('MzBot2.dll');
  if handle = 0 then
  begin
    ShowMessage('MzBot2.dll not found!');
    Exit;
  end;
  WindowsVersion := GetProcAddress(handle, 'GetVersion');

end;


I dont get an error now.
But how do I exactly use it now? That it sends a key to somewhere?
A guy said now I can use the functions which are normally blocked by GG.
But this doesn't work.
Please explain Smile

btw.
Should I remove the
Code:
  WindowsVersion := GetProcAddress(handle, 'GetVersion');

this too?
Back to top
View user's profile Send private message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Wed Jul 25, 2007 6:50 am    Post subject: Reply with quote

GetProcAddress
Quote:
Retrieves the address of an exported function or variable from the specified dynamic-link library (DLL).


MzBot.dll doesn't export GetVersion, that's the line you where supposed to remove.

_________________
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Wed Jul 25, 2007 6:59 am    Post subject: Reply with quote

ok.
But what key send function should I use/work now?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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