Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

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?
0
LewisFox
Asked:
LewisFox
1 Solution
 
migelCommented:
Hi!
may be ?
   IFontDisp* fd1 = GetFont();
0
 
LewisFoxAuthor Commented:
Yes!
IFontDisp *fd1 = (IFontDisp *)GetFont();
Thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now