![]()  | 
 
Problem with LoadSkin function | 
 
    Post Reply  
   | 
  
| Author | |
   
   compvis  
   
   Groupie  
   Joined: 07 March 2008 Location: Vietnam Status: Offline Points: 36  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Problem with LoadSkin functionPosted: 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 !
     
   
   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
   
   compvis  
   
   Groupie  
   Joined: 07 March 2008 Location: Vietnam Status: Offline Points: 36  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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 !
     
   
   | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
   
   Smucker  
   
   Senior Member  
   Joined: 02 February 2008 Status: Offline Points: 156  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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.  | 
 |
![]()  | 
 |
   
   Tarmac  
   
   Newbie  
   Joined: 15 February 2010 Status: Offline Points: 1  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |