You must call SetDllDirectory first.
In MSDN:
The GetDllDirectory function retrieves the application-specific portion of the search path used to locate DLLs for the application.
For detail.
Look for GetDllDirectory and SetDllDirectory in MSDN.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.