Solved

How to deal with a IFontDisp ?

Posted on 2001-07-11
2
231 Views
Last Modified: 2013-11-20
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
Comment
Question by:LewisFox
2 Comments
 
LVL 12

Accepted Solution

by:
migel earned 120 total points
ID: 6272434
Hi!
may be ?
   IFontDisp* fd1 = GetFont();
0
 

Author Comment

by:LewisFox
ID: 6272562
Yes!
IFontDisp *fd1 = (IFontDisp *)GetFont();
Thanks!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
unable to delete all specified values regedit 38 418
Prevent this page from creating additional dialogs. 3 532
NotAlone Challenge 20 83
Change to event 1 112
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question