|
-
Jun 4th, 2001, 12:32 PM
#1
Dll/api
I am trying to make a DLL which will call an API function for me. (VB is picky about using SetWindowLong with apps not woned by u). I really don't know C++ well, and am using whatever tutorials I can find. It works ok, when making a dummy function (int a(){return 5;}) but when i try to have the function call an API function (eg, clipcursor, setparent), i get this error in VB: Bad DLL calling convention. can anyone help?
-
Jun 4th, 2001, 01:03 PM
#2
hmmm, it seems to work when I put it in a class using a MFC dll.
-
Jun 4th, 2001, 01:11 PM
#3
Monday Morning Lunatic
I don't know if the search will accept this, but try C++ DLL in the search.
The calling convention is merely how it calls the function:
Code:
int __stdcall func() {
return 0;
}
__stdcall is the convention for DLL functions.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|