Glad it helped. As with most of that kind of code, I always intend to go
back and clean it up -- and never seem to get to it... I started out with
the MFC classes, sort of, and added in the file loading and GDI+ code. Also,
there's some funny business going on with the ATL thunks I use so that the
leak checking isn't quite so misleading when you're attempting to use
(spoof) weak references. For that to work correctly, you'll need my modified
ATL headers but it won't hurt anything if you don't (the leak checks just
won't be right). This, of course, only applies to _ATL_DEBUG_INTERFACES
being defined. Let me know if you need this enabled and I'll email the
hacked headers privately.

Ciao,
Dee

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ehsan Akhgari
Sent: Thursday, February 19, 2004 3:15 PM
To: [EMAIL PROTECTED]
Subject: RE: [msvc] OleLoadPicture( ) problem


> Here's my CPictureHolder & CFontHolder classes... <attached>
>
> <disclaimer>
> This is production code which has evolved over time. Some chunks
> commented out, etc. Although it has not been exhaustively tested, none
> of the code has had a GPF or leak traced back to it in quite some
> time. YMMV.
> </disclaimer>

Thanks a lot!!!  Far better than the one I tried to scramble.  :-)

-------------
Ehsan Akhgari

Farda Technology (www.farda-tech.com)

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] ]
[ WWW: http://www.beginthread.com/Ehsan ]

Whoever fights monsters should see to it that in the process he does not
become a monster. And when you look long into the abyss, the abyss also
looks into you.
-Beyond Good And Evil, F. W. Nietzsche




_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.



Reply via email to