Answer the question
In order to leave comments, you need to log in
How to get the name of a function imported from a DLL?
Let's say I have the name of a function that I want to load from a DLL: char* fn = "myFunctionName";
If you need to get a pointer to a function named fn, then everything is simple:
TFuncPointer pFunc = (TFuncPointer)GetProcAddress(myDLLinstance, fn);
Answer the question
In order to leave comments, you need to log in
You can parse the export table by hand: it is much more difficult, but it should be faster. Your approach, in principle, should also be fast...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question