"Saulius Krasuckas" <saulius2(a)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.
--
Dmitry.