Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - useofficefont function
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

useofficefont function

 Post Reply Post Reply
Author
Message
tallycom View Drop Down
Newbie
Newbie
Avatar

Joined: 04 December 2003
Location: United Kingdom
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote tallycom Quote  Post ReplyReply Direct Link To This Post Topic: useofficefont function
    Posted: 28 December 2003 at 2:02am

 

it occor access violation !!!

how can solve this problem..?

thx  

BOOL CMonitoringApp::InitInstance()
{
 CWinApp::InitInstance();

 XTPPaintManager()->UseOfficeFont(TRUE);  // access violation

 XTPPaintManager()->RefreshMetrics();

 xtAfxData.SetGlobalFont("Tahoma");

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 January 2004 at 2:18am

You must move this code after InitCommandBars() call in the CMainFrame::OnCreate.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.