Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Vista - ApplySkin Not Working - Dependencies Req
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Vista - ApplySkin Not Working - Dependencies Req

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

Joined: 02 November 2006
Location: India
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote nklarun Quote  Post ReplyReply Direct Link To This Post Topic: Vista - ApplySkin Not Working - Dependencies Req
    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]

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:..
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: 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
Back to Top
nklarun View Drop Down
Newbie
Newbie
Avatar

Joined: 02 November 2006
Location: India
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote nklarun Quote  Post ReplyReply Direct Link To This Post 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:..
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: 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
Back to Top
blkn View Drop Down
Newbie
Newbie
Avatar

Joined: 07 November 2006
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote blkn Quote  Post ReplyReply Direct Link To This Post 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...
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: 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
Back to Top
blkn View Drop Down
Newbie
Newbie
Avatar

Joined: 07 November 2006
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote blkn Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
blkn View Drop Down
Newbie
Newbie
Avatar

Joined: 07 November 2006
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote blkn Quote  Post ReplyReply Direct Link To This Post 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...
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.188 seconds.