In Win2K and higher, if there is a file called 'app.exe.local' in the same directory as app.exe, then all dll's will be loaded from the app's load directory -- even if its delay loaded with an absolute path that points elsewhere. the .local. may also override the 'current directory' part of the search order listed above, but I'm not sure.
>579 http://www.codeproject.com/cs/media/measurestring.asp > I found this technique through a GDI+ KB article (Q307208) at http://support.microsoft.com/default.aspx?scid=kb;EN-US;q307208 > Summary: to measure a string without resolution dependent effects and 1/6 em gaps you must use a GenericTypographic StringFormat. > Something like: > sfmt = StringFormat.GenericTypographic; > size = graphics.MeasureString( m_Text, m_ActiveFont, 1000, sfmt ); > Although the article doesn't say it, I believe the GenericTypographic StringFormat sets some internal bits that are not available through the API any other way, at least I haven't found them (and I've been trying).
Windows 98/Me, Windows 2000/XP: If the driver cannot support the JPEG or PNG file image passed to SetDIBitsToDevice, the function will fail and return GDI_ERROR. If failure does occur, the application must fall back on its own JPEG or PNG support to decompress the image into a bitmap, and then pass the bitmap to SetDIBitsToDevice.