loadLibrary with relative path/ findFile with relative path
Posted on 2009-12-23
My C++ application will be compiled to DLL (name MYAPP.dll). Then I put this dll to another folder.
In my application, I need to load another dll, then I call like this
HMODULE m_Lib = LoadLibrary(_T("..\dll\ANOTHER.dll"));
The m_Lib is NULL.
The same thing as using findFile
BOOL finding = finder.FindFile (CString("..\lib\*.jar"));
The result is always FALSE
My directory structure like this
Thanks for your help