Sign in to follow this  

call a function from DLL

This topic is 3856 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, I have a DLL that contains a class that has some static methods. I want to cal l those methods from a different dll. So I'm using LoadLibrary("") and then getting the address of the process with GetProcAddress(), but I don't know how to create a function pointer to a static method. Any ideas? Maybe an alternative to using LoadLib()? Thnx.

Share this post


Link to post
Share on other sites
If you mean a static class method, then it's just the same as a normal global function. If you mean a static method in a source file, you can't because they don't exist outside the source file they're declared in.

Share this post


Link to post
Share on other sites

This topic is 3856 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this