MISIIM Posted April 8, 2008 Posted April 8, 2008 (edited) I am trying to implement a DllCall style function in C++. Assuming I already have the Dll pointer, function name, etc. how would I do this basically. I'd bet that I'd need to use some assembly, but I've never used assembly in windows. Thanks. Edited April 8, 2008 by MISIIM
Valik Posted April 8, 2008 Posted April 8, 2008 This is not a trivial excercise. Why do you wish to do it? There may be an easier way to achieve your goal.
MISIIM Posted April 8, 2008 Author Posted April 8, 2008 I am trying to write a VM somewhat like Java. I want to make native functions available to the visualized code. Would the easiest way be to do a switch statement on the number of arguments and in each case call the function with that many arguments? (Up to say 10 args.)
Valik Posted April 8, 2008 Posted April 8, 2008 You seem to be lacking the basic knowledge necessary. Go spend some time learning assembly and how arguments are passed and then come back to this portion of your project. You need to learn about the stack and calling conventions.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now