Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Problem with LoadSkin function
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with LoadSkin function

 Post Reply Post Reply
Author
Message
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Topic: Problem with LoadSkin function
    Posted: 06 May 2008 at 2:46am
Hello everyone !
 
I use Visual C++ 2005 to build my project. I call LoadSkin function as below in my contructor:
 

XTPSkinManager()->LoadSkin(_T("C:\\Codejock Software\\MFC\\Xtreme ToolkitPro v11.2.2\\Bin\\vc80\\styles\\Office2007.cjstyles"),_T("NormalBlue.ini"));

then in Output window displays this message:

"First-chance exception at 0x7c81eb33 in Measuring.exe: Microsoft C++ exception: COleException at memory location 0x0012eac8.."

If i remove LoadSkin function, my program runs normally. I don't know why. Pls help me !
 
Thanks
I love ToolkitPro, Suite Pro ! Thanks Codejock !
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: 06 May 2008 at 2:56am
Hi,
 
Do you see same message when you run our sample ? Maybe you can isolate what code gives you this message ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
compvis View Drop Down
Groupie
Groupie
Avatar

Joined: 07 March 2008
Location: Vietnam
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote compvis Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 12:24am

Thanks, Oleg !

I didn't see this message in your sample.

I use Xtreme Toolkit wizard to create project and set build mode is Release.

I compared "Project properties" of two projects (your own and my own)and found that there are many differences.

i coudn't know how fix this message.

As i said, if i remove the call to LoadSkin function,  Output windows doesn't display this message.

You said that "Maybe you can isolate what code gives you this message" but apart from removing the call to LoadSkin function, i don't know what code i have to isolate.
 
Sorry, English is not my native language !
 
Thanks
I love ToolkitPro, Suite Pro ! Thanks Codejock !
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: 07 May 2008 at 1:28am
Hello,
 
If you have not very big project, send it to support@codejock.com - we will help to find it.
 
If you can't send it, trace it to find lines with problems.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2008 at 6:58pm
In order to break into the debugger when the exception actually occurs (rather than just seeing the trace in the Output window), use Debug - Exceptions, and check the Thrown box for CException. This might give you more information about what is happening.

You may also be able to add COleException as a C++ execption and break only on this, but I have not tried it.


Back to Top
Tarmac View Drop Down
Newbie
Newbie


Joined: 15 February 2010
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tarmac Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2010 at 7:04am
Hello,

Has this problem been resolved?
If it has, could someone kindly direct me to the solution?

Cheers


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.184 seconds.