can i use gdi+ in atl project?
-
i try to use gdi+ in my atl dll project. but it was failed when i try to exit my process because the gdiplusshutdown fuction is failed. what can i do?:( :( :(
We had this problem on a machine that we'd not installed the full platform SDK on using MFC, and we found that just failing to shut it down still worked OK. GDI+ is a COM object itself, so I see no reason why you should have trouble running it in ATL. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
-
We had this problem on a machine that we'd not installed the full platform SDK on using MFC, and we found that just failing to shut it down still worked OK. GDI+ is a COM object itself, so I see no reason why you should have trouble running it in ATL. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
-
i really have not installed the full platform SDK. but i can use gdi+ normally when i useing MFC. but it is really failed when i called the function gdiplusshutdown in my ATL DLL project. maybe i need installed the full platform SDK? i will try:(
If you're following Christian's article, there's a little mistake that causes LNK2001 on GdiPlusShutdown. Change your ULONG_PTR typedef to
typedef ULONG_PTR ULONG;
--Mike-- http://home.inreach.com/mdunn/ "Listen you footwarriors, can you hold down a bit with the firing? I've just got three impromptu weddings breaking out behind me!" -- Arthur Dent :love: your :bob: with :vegemite: and :beer: