Sign in to follow this  
VanillaSnake21

call a function from DLL

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

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