I am using some COM interface to create some HFONT.
Trouble is, the font created with this COM interface should be release with
this COM intrface.
And I don't see how I could make it work nicely with my ManagedC++ wrapper.
The solution I though of is:
when the COM interface create this reference I "clone" it and release it
immediately, and I could hgo on my business with this "clone"
So...
is there anyway to clone an HFONT?
Lloyd Dupont - 24 Oct 2005 07:53 GMT
Found out!
SelectObject() => GetObject()

Signature
There are 10 kinds of people in this world. Those who understand binary and
those who don't.
>I am using some COM interface to create some HFONT.
> Trouble is, the font created with this COM interface should be release
[quoted text clipped - 8 lines]
> So...
> is there anyway to clone an HFONT?
William DePalo [MVP VC++] - 24 Oct 2005 15:30 GMT
> So...
> is there anyway to clone an HFONT?
Check the docs for GetObject() if your question is as in the subject line.
Regards,
Will