call a function from DLL

Started by
0 comments, last by Evil Steve 16 years, 11 months ago
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.

You didn't come into this world. You came out of it, like a wave from the ocean. You are not a stranger here. -Alan Watts

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.

This topic is closed to new replies.

Advertisement