I have to dynamically load the DLL interface of libxml2 via LoadLibrary and GetProcAddress under Windows. All of the function pointers I've used are properly loaded, except for xmlFree.
xmlFree is not a normal DLL export, but instead a function pointer. GetProcAddress on "xmlFree" will thus return a pointer to a pointer to the xmlFree function.
typedef void (*LibXmlFree) (void* mem);
LibXmlFree xmlFree = GetProcAddress( hModule, "xmlFree" );
This will thus succeed, but calling this function will fail because xmlFree doesn't point to the real function.
How do I create a proper pointer to DLL's xmlFree(void*) export?