![]() |
How to skin MSDI sample |
Post Reply ![]() |
Author | |
gpsunjp ![]() Newbie ![]() Joined: 07 April 2005 Location: Benin Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 21 February 2010 at 9:38am |
Hi,
I want to skin MSDI sample. But when I add the following code to CMainframe::OnCreate(), the second thread application will crash. Is there someone know how to solbe this problem? Thanks, G.P. Sun |
|
![]() |
|
gpsunjp ![]() Newbie ![]() Joined: 07 April 2005 Location: Benin Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
The added code
================================================= #ifdef _XTP_INCLUDE_SKINFRAMEWORK XTPSkinManager()->LoadSkin(NULL, _T("NORMALBLACK.INI")); #endif ============================================== |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Replace to
XTPSkinManager()->LoadSkin("Styles\\Vista.cjstyles", _T("NORMALBLACK.INI"));
and move from OnCreate to constructor.
and check you have this file in bin\Styles folder. (or just compile any sample from Skifnramework folder - they will copy them)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
gpsunjp ![]() Newbie ![]() Joined: 07 April 2005 Location: Benin Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Hello
Thank you for your quick reply. I did as you taught. I still didn't resolve this problem. It is no problem for single threaded application. But for Multithreaded application, the second or third thread application started from the before thread application will crash. I will appreciate if you could give me the skinned MSDI Sample. G. P. Sun |
|
![]() |
|
juancarlos ![]() Newbie ![]() Joined: 05 April 2010 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Same problem here. Do you have any progress solving it?
thank you. |
|
![]() |
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 |