Print Page | Close Window

Vista - ApplySkin Not Working - Dependencies Req

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=6065
Printed Date: 30 January 2025 at 11:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Vista - ApplySkin Not Working - Dependencies Req
Posted By: nklarun
Subject: Vista - ApplySkin Not Working - Dependencies Req
Date Posted: 10 January 2007 at 10:07am
Hi,
 

Client Machine Details:

 

OS: Windows Vista 2 RC1 - Build 5600

 

          We have registered all Codejock v10.3.1 OCX files in the window vista client machine including  (Codejock.SkinFramework.Unicode.v10.3.1.OCX) and just tried the simple application.

 

Private Sub Form_Activate()

    SkinFramework.LoadSkin App.Path + "\Office2007.cjstyles", ""

    SkinFramework.ApplyWindow Me.hWnd

    SkinFramework.ApplyOptions = SkinFramework.ApplyOptions Or xtpSkinApplyMetrics

End Sub

 

It throws the below error and unable to open the application.

 

 
 

[Code attached for your reference as a zipfile]

          https://forum.codejock.com/uploads/20070110_100603_Testvista.zip - uploads/20070110_100603_Testvista.zip
 

We need to know what are all the dependencies files required for Codejock to work for Window Vista/how to fix this?

 
 
Thanks in advance!
 


-------------
..:NklArun:..



Replies:
Posted By: Oleg
Date Posted: 10 January 2007 at 2:10pm
Hello,
Quite weird, but seems Vista don't have mfc42u.dll by default. Hope Microsofts will include it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: nklarun
Date Posted: 11 January 2007 at 1:19am
Hi Oleg,
 
           I check with that Vista Client machine and "mfc42u.dll" is available and also registered.
 
           Now too application throws the same error. 
 
           How can we fix this issue?
 
Thanks is advance!
 


-------------
..:NklArun:..


Posted By: Oleg
Date Posted: 11 January 2007 at 2:25am

Then Codejock.SkinFramework.Unicode.v10.3.1.OCX was not registered properly. Guess because of priveledge.

 
create bat file:
 
regsvr32 pathtoocx\Codejock.SkinFramework.Unicode.v10.3.1.OCX
 
 
right click on this bat file and choose run as administrator.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: blkn
Date Posted: 11 January 2007 at 3:55am

When we register the component, by a creating a batch file and choose to run as administrator, it got registered and Our test application run as usual.

But we struck at place as when we use the commandbarglobalsetting object or any of the globalsettings objects of the codejock.   How to solve this issue? or what is the workaround for this..?
 
sample code as follows...
 
   CommandBarsGlobalSettings.App = App
    or
   SkinFrameworkGlobalSettings.License = ""
 
 
Thanks in advance.
 


-------------
Bala...


Posted By: Oleg
Date Posted: 11 January 2007 at 4:50am
What happned in CommandBarsGlobalSettings.App = App? Application hangs ?
try to call
CommandBars.GlobalSettings.App = App.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: blkn
Date Posted: 11 January 2007 at 5:37am
Hi Oleg,
 
When we use 'CommandBarsGlobalSettings.App = App' the application throws the runtime error.
But It works fine when we change code as you recommended,
CommandBars.GlobalSettings.App = App.
 
Secondly, What is the workaround to be used in case of licensing the component. for example...
     Private SkinFrameworkGlobalSettings as new XtremeSkinFramework.SkinFrameworkGlobalSettings
     SkinFrameworkGlobalSettings.License = "license string"
 
Best Regards,


-------------
Bala...


Posted By: blkn
Date Posted: 24 January 2007 at 6:08am
Hi Oleg,
 
Is there is any work to be used in case of licensing the component. for example...
     Private SkinFrameworkGlobalSettings as new XtremeSkinFramework.SkinFrameworkGlobalSettings
     SkinFrameworkGlobalSettings.License = "license string"
 
It is very urgent...


-------------
Bala...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net