let me explain, because the last person who asked this got flamed for some reason about using a dll for illegitimate purposes, although i didnt see the problem with what he was asking. Im making a program which uses a plugin like archetecture, and I want to load a dll by its path name, however
which returns didnt load. Ive tried pleanty of variation of that, such as using double \\, ommiting the C:, but i cant figure out how to load it.Code:HINSTANCE hInstLibrary = LoadLibrary("C:\pathTo\dp_dummy.dll"); if(hInstLibrary == NULL) { FreeLibrary(hInstLibrary); wxString output; output.Printf("didnt Load"); logMessage(output); return 0; }