Overwork is terrible.
But if you fix the issue which is very hard,that will be very excited.
The issue is occured on Microsoft new OS "Windows Vista".
if you use LoadLibrary to load one dll and want to change the current path.
please refer to the below:
and
The search path can be altered using the SetDllDirectory function. This solution is recommended instead of using SetCurrentDirectory or hard-coding the full path to the DLL.
Client | Requires Windows Vista or Windows XP SP1. |
---|---|
Server | Requires Windows Server "Longhorn" or Windows Server 2003. |
Header | Declared in Winbase.h; include Windows.h. |
Library | Use Kernel32.lib. |
DLL | Requires Kernel32.dll. |
Unicode | Implemented as SetDllDirectoryW (Unicode) and SetDllDirectoryA (ANSI). |
Elliot Liu
No comments:
Post a Comment