"Saulius Krasuckas" saulius2@ar.fi.lt wrote:
I am sure FreeLibrary() call wasn't necessary, but that might change in future (if gdi.dll gets linked only during runtime). Because of this I didn't want to FreeLibarary() right after last call to GetProcAddress(), so added it at the end of the test. Feel free to correct the test. :-)
Since this is a GDI test it already implicitly links with gdi32.dll. So, there is no need for LoadLibrary/FreeLibrary, GetModuleHandle is enough.
* On Fri, 21 Oct 2005, Dmitry Timoshkov wrote:
- "Saulius Krasuckas" saulius2@ar.fi.lt wrote:
I am sure FreeLibrary() call wasn't necessary, but that might change in future (if gdi.dll gets linked only during runtime). Because of this I didn't want to FreeLibarary() right after last call to GetProcAddress(), so added it at the end of the test. Feel free to correct the test. :-)
Since this is a GDI test it already implicitly links with gdi32.dll. So, there is no need for LoadLibrary/FreeLibrary, GetModuleHandle is enough.
Ok, I tried to optimize things way too prematurely (case when implicit linking will be gone). Will fix this back to GetModuleHandle() soon.