• Advertisement
Sign in to follow this  

call a function from DLL

This topic is 3927 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
Advertisement
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
Sign in to follow this  

  • Advertisement