C++ 怎样的到DLL路径
a.exe 动态加载了 b.dll, 我的程序在b.dll中 我现在想要获得b.dll的路径,怎样获得
a.exe的全路径 C:\WINDOWS\system32\a.exe
b.dll的全路径 C:\Program Files\bbb\bin\b.dll
我在b.dll中用GetCurrentDirectory 和 GetModuleFileName 都不对
GetModuleFileName 得到 C:\WINDOWS\system32\a.exe
GetCurrentDirectory 得到 C:\Documents and Settings\gong
那位大哥可以帮帮我
我要获得路径: C:\Program Files\bbb\bin\