To Retrieve Path of a DLL file.
-
Hi all , How can I get the path of a COM DLL ?? I am using this way.. Inside DLL , I am writing this code. /******************************************************/ HINSTANCE g_hInst; TCHAR szModule[MAX_PATH]; g_hInst = _Module.GetModuleInstance(); GetModuleFileName(g_hInst, szModule, MAX_PATH); /*******************************************************/ I am getting the Path . But am getting in this form.. "D:\THINVI~1\INTEGR~1.DLL" . The tilt sign makes the folder and file names incomplete . My actual path is "D:\THINVISITS_14-2-07\INTEGRALHOTBAR.DLL" So how can I get my dll path in the complete form without Tilt(~).. Please Help Me Thanks George.
-
Hi all , How can I get the path of a COM DLL ?? I am using this way.. Inside DLL , I am writing this code. /******************************************************/ HINSTANCE g_hInst; TCHAR szModule[MAX_PATH]; g_hInst = _Module.GetModuleInstance(); GetModuleFileName(g_hInst, szModule, MAX_PATH); /*******************************************************/ I am getting the Path . But am getting in this form.. "D:\THINVI~1\INTEGR~1.DLL" . The tilt sign makes the folder and file names incomplete . My actual path is "D:\THINVISITS_14-2-07\INTEGRALHOTBAR.DLL" So how can I get my dll path in the complete form without Tilt(~).. Please Help Me Thanks George.
Add an additional call to
GetLongPathName
.Steve