SetDllDirectory不能使用? 在VC6.0中不能使用SetDllDirectory这个API,使用老是提示没有定义,看MSDN,这个文件声明在头文件Header Winbase.h (include Windows.h) Library Kernel32.lib DLL Kernel32.dll 可是使用提示SetDllDirectory没有定义?打开Winbase.h这个头文件,发现并没有SetDllDirectory这个声明,到底SetDllDirectory声明在哪个文件,可是用VC2012只要包含<windows.h>头文件即可使用? VC6.0中发现包含<windows.h>也不能使用?真的有点莫名其妙? [解决办法] Client Requires Windows Vista or Windows XP SP1.
Server Requires Windows Server 2008 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).