I have used static text control with id :IDC_STATIC. Font size of static control is changed using below
CFont title4font, title5font;
CLIP_DEFAULT_PRECIS,PROOF_QUALITY,DEFAULT_PITCH | FF_SWISS,"Arial"));
title5 = (CStatic*)GetDlgItem(IDC_STATIC);
when i run this program in windows xp, it works fine and but when i run this program in windows 98, problem occurs showing this message
"Invalid Page Fault in MFC42D.dll".
In debug mode, i got message "Unhandled exception in XXXXX.exe (MFC42d.dll): 0xc0000005 Access Violation
But same program when i change ID of static text control to IDC_STATIC2, it works fine both in XP, 98.