Link to home
Start Free TrialLog in
Avatar of LewisFox
LewisFox

asked on

How to deal with a IFontDisp ?

Hi,
  I'm programming to Crystal with MFC. There is a function GetFont() returning IFontDisp. But if I write:
    IFontDisp fd1 = GetFont();
  compile errors raise and say:"cannot instantiate abstract class".
  Then how can I get the font information from this function?
ASKER CERTIFIED SOLUTION
Avatar of migel
migel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LewisFox
LewisFox

ASKER

Yes!
IFontDisp *fd1 = (IFontDisp *)GetFont();
Thanks!