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 


(VB6) How do I call PMX.dll ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
tyne
Newbie cheater
Reputation: 0

Joined: 28 Feb 2007
Posts: 11

PostPosted: Thu Jan 17, 2008 11:14 pm    Post subject: (VB6) How do I call PMX.dll ? Reply with quote

Hi, I was meddling around with PMX.dll but I can't seem to call it.
I tried this code
Code:
Private Declare Function PostMessageX Lib "PMX.dll" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal Uint As Long, ByVal wParam As Long, ByVal lParam As Long) As Long


but somehow that doesn't work...

could someone help me plz, thanks.

tyne Smile

_________________
I don't spend enough time on CEF? Because I don't like posting Sad
--------------------------
How do you use Pointer Version of SS Tele?
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Fri Jan 18, 2008 12:09 am    Post subject: Reply with quote

why dont you google loading .dll in vb6
_________________
Back to top
View user's profile Send private message
stealthy17
Expert Cheater
Reputation: 0

Joined: 10 Apr 2007
Posts: 144
Location: The Netherlands

PostPosted: Fri Jan 18, 2008 3:27 am    Post subject: Reply with quote

He's "loading" it properly.

What exactly is going wrong?
Maybe a type mismatch or something?
Are you sure the function exists?

I don't know the DLL but that's how you declare functions...

After some digging i think you should take out "ByVal Uint As Long"
It does not need this...

Function:
function PostMessageX(
hWnd:HWND;
MSG:UINT;
WPARAM:wParam;
LPARAM:lParam):BOOL;stdcall;
external 'PMX.dll' name 'PostMessageX';
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Jan 18, 2008 7:35 am    Post subject: Reply with quote

stealthy17 wrote:
He's "loading" it properly.

What exactly is going wrong?
Maybe a type mismatch or something?
Are you sure the function exists?

I don't know the DLL but that's how you declare functions...

After some digging i think you should take out "ByVal Uint As Long"
It does not need this...

Function:
function PostMessageX(
hWnd:HWND;
MSG:UINT;
WPARAM:wParam;
LPARAM:lParam):BOOL;stdcall;
external 'PMX.dll' name 'PostMessageX';


VB6 will error if the DLL isn't found when making the call to the given function.

And for the uint as long, he does need that. VB does not use the standard variable types like other languages, instead, most of the variables like HWND, UINT, LPARAM, WPARAM etc from other languages will convert to Long in VB.

Only reason I could see this not working would be because the PostMessageX function is not exported correctly for VB use. (No that doesn't mean whom ever coded it coded it wrong, just means they didn't include the ability for VB to use it as well.)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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