Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fstream question Pin
toxcct17-Jul-07 7:04
toxcct17-Jul-07 7:04 
AnswerRe: fstream question Pin
DevMentor.org17-Jul-07 6:58
DevMentor.org17-Jul-07 6:58 
QuestionMso97.dll Error Appear When Starting a Program Pin
Sammyuk17-Jul-07 0:48
Sammyuk17-Jul-07 0:48 
AnswerRe: Mso97.dll Error Appear When Starting a Program Pin
David Crow17-Jul-07 2:42
David Crow17-Jul-07 2:42 
AnswerRe: Mso97.dll Error Appear When Starting a Program Pin
Hamid_RT25-Jul-07 8:07
Hamid_RT25-Jul-07 8:07 
QuestionTo find InstallPath of MSOffice Pin
Sammyuk17-Jul-07 0:31
Sammyuk17-Jul-07 0:31 
AnswerRe: To find InstallPath of MSOffice Pin
David Crow17-Jul-07 2:47
David Crow17-Jul-07 2:47 
AnswerRe: Creating Font with size in pt. Pin
prasad_som17-Jul-07 0:34
prasad_som17-Jul-07 0:34 
harsha u wrote:
I have to create a CFont object,with a perticulat size in points, of a perticular face type. I also want to specify the weight (Bold or not).
I have created a font using CFont::CreateFont(). But then i have to pass the size in terms of height and width (not in pt). I need to specify the size in pt.

Actually, it is very difficult to understand , what you are saying.
Probably, you can have a look at LOGFONT.

harsha u wrote:
I have also tried this:
CFont *font;
font->CreatePointFont(120,"Arial",this->GetDC());

It is throwing an exception


It is because, you are using uninitialized pointer.


Prasad
MS MVP -  VC++

QuestionTODO: has encountered a problem and needs to close. We are sorry for the inconvenience. Pin
yaminisridaran16-Jul-07 23:23
yaminisridaran16-Jul-07 23:23 
AnswerRe: TODO: has encountered a problem and needs to close. We are sorry for the inconvenience. Pin
Cedric Moonen16-Jul-07 23:31
Cedric Moonen16-Jul-07 23:31 
GeneralRe: TODO: has encountered a problem and needs to close. We are sorry for the inconvenience. Pin
yaminisridaran16-Jul-07 23:35
yaminisridaran16-Jul-07 23:35 
GeneralRe: TODO: has encountered a problem and needs to close. We are sorry for the inconvenience. Pin
Hamid_RT25-Jul-07 8:07
Hamid_RT25-Jul-07 8:07 
QuestionWhy wouldn't this work? [MFC- Radio buttons] Pin
Eytukan16-Jul-07 22:54
Eytukan16-Jul-07 22:54 
AnswerRe: Why wouldn't this work? [MFC- Radio buttons] Pin
prasad_som16-Jul-07 23:59
prasad_som16-Jul-07 23:59 
AnswerRe: Why wouldn't this work? [MFC- Radio buttons] Pin
David Crow17-Jul-07 2:52
David Crow17-Jul-07 2:52 
QuestionRe: Why wouldn't this work? [MFC- Radio buttons] Pin
prasad_som17-Jul-07 18:13
prasad_som17-Jul-07 18:13 
AnswerRe: Why wouldn't this work? [MFC- Radio buttons] Pin
David Crow18-Jul-07 2:29
David Crow18-Jul-07 2:29 
GeneralRe: Why wouldn't this work? [MFC- Radio buttons] Pin
Eytukan19-Jul-07 7:45
Eytukan19-Jul-07 7:45 
QuestionProject type Pin
josip cagalj16-Jul-07 22:38
josip cagalj16-Jul-07 22:38 
AnswerRe: Project type Pin
_AnsHUMAN_ 16-Jul-07 23:00
_AnsHUMAN_ 16-Jul-07 23:00 
GeneralRe: Project type Pin
josip cagalj17-Jul-07 1:20
josip cagalj17-Jul-07 1:20 
QuestionAdding Chart object into Crystal Reports Pin
ksandy4516-Jul-07 22:11
ksandy4516-Jul-07 22:11 
QuestionHow to make a window modal? Pin
Navaid Alam16-Jul-07 21:39
Navaid Alam16-Jul-07 21:39 
AnswerRe: How to make a window modal? Pin
Mark Salsbery17-Jul-07 6:08
Mark Salsbery17-Jul-07 6:08 
AnswerRe: How to make a window modal? Pin
DevMentor.org17-Jul-07 7:02
DevMentor.org17-Jul-07 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.