| View previous topic :: View next topic |
| Author |
Message |
tyne Newbie cheater
Reputation: 0
Joined: 28 Feb 2007 Posts: 11
|
Posted: Thu Jan 17, 2008 11:14 pm Post subject: (VB6) How do I call PMX.dll ? |
|
|
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
_________________
I don't spend enough time on CEF? Because I don't like posting
--------------------------
How do you use Pointer Version of SS Tele? |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Fri Jan 18, 2008 12:09 am Post subject: |
|
|
why dont you google loading .dll in vb6
_________________
|
|
| Back to top |
|
 |
stealthy17 Expert Cheater
Reputation: 0
Joined: 10 Apr 2007 Posts: 144 Location: The Netherlands
|
Posted: Fri Jan 18, 2008 3:27 am Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Jan 18, 2008 7:35 am Post subject: |
|
|
| 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 |
|
 |
|