Hi Geroge,
If the application is going to be run on different OS, it seems that I need to do this:
To compile an application that uses this function, define the _WIN32_WINNT macro as 0x0502 or later. For more information, see Using the Windows Headers.
I copy the above paragraph from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setdlldirectory.aspI want to change the dll search order to use the dlls in the application folder. For Windows 98 SE, Windows NT 4 and Windows 2000, I believe I just need to copy the dlls into the application folder and have a file with .local extension. For Windows XP SP1 and Windows 2003, I believe I need to use SetDllDirectory function. Does this sounds right to you? What is the value lpPathName I should use?
Thank you for your help,
Peter