SuiteControls in Sample folder

This forum is for support of XCodeJock
Post Reply
Message
Author
Andy Edward
Posts: 103
Joined: Fri Sep 17, 2010 2:58 am

SuiteControls in Sample folder

#1 Post by Andy Edward »

Hi Roger,

I'm trying to run TaskDialog.exe in \XCodeJock\Samples\SuiteControls\TaskDialog, but got a message saying CLSID is required for ActiveX Control.

Any ideas on what I should do? I'm still new with codejock and xcodejock

I'm using Codejock 16.3.1 if that's any help.

Best Regards,

Andy

User avatar
Tom
Posts: 1205
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: SuiteControls in Sample folder

#2 Post by Tom »

Hi, Andy.

Either add:

Code: Select all

CJ_Version("16.3.1")
to the samples code (recompile) or set the environment variable "CODEJOCK_VERSION" to this value. With Windows 7 or later, you may set this in the registry (CURRENT_USER -> Environment). Restart computer.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Andy Edward
Posts: 103
Joined: Fri Sep 17, 2010 2:58 am

Re: SuiteControls in Sample folder

#3 Post by Andy Edward »

Tom wrote:
Either add:

Code: Select all

CJ_Version("16.3.1")
to the samples code (recompile) or set the environment variable "CODEJOCK_VERSION" to this value. With Windows 7 or later, you may set this in the registry (CURRENT_USER -> Environment). Restart computer.
I've added "CODEJOCK_VERSION=16.3.1" in my environment variable, and some of the samples such as calendar and skinframework can run. But not SuiteControls samples

For example in Skinframework.prg, I see this code:

Code: Select all

TEXT INTO cLicense WRAP
Skin Framework Control Copyright (c) 2003-2009 Codejock Software
PRODUCT-ID: Codejock.SkinFramework.ActiveX.v13.0
VALIDATE-CODE: GGE-OLD-QQR-EJS
ENDTEXT

oGlobalSettings := CreateObject('Codejock.SkinFrameworkGlobalSettings'+CJ_Version("16.3.1"))
oGlobalSettings:license := cLicense
For TaskDialog.prg, I only see this:

Code: Select all

TEXT INTO cContent WRAP
Name:      <a href="http://donnay-software.com/XCodeJock.htm">XCodeJock Pro</a>
Publisher: <a href="http://donnay-software.com">Donnay Software Designs</a>'
ENDTEXT
So no oGlobalSettings in TaskdDialog.prg. Is there any specific code that I have to add?

Best Regards,

Andy

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: SuiteControls in Sample folder

#4 Post by rdonnay »

Andy -

You don't need to add the oGlobalSettings object.
I'm not even sure why I put that in the SkinFramework sample.
I wrote this stuff a long time ago.

The SkinFramework sample still works even if you comment it out.

Roger
The eXpress train is coming - and it has more cars.

Andy Edward
Posts: 103
Joined: Fri Sep 17, 2010 2:58 am

Re: SuiteControls in Sample folder (SOLVED)

#5 Post by Andy Edward »

Hi all,

It's as simple as adding CJ_Version("16.3.1") to make it work, just like what Tom said.

Thanks for pointing me to right direction

Best Regards,

Andy

Post Reply