call a function from DLL
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement