Solved

How to deal with a IFontDisp ?

Posted on 2001-07-11
2
208 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now