Cannot run sample programs

This forum is for support of XCodeJock
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4728
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Cannot run sample programs

#1 Post by rdonnay »

This was sent as a private email. I am posting it here on the forum.

I was trying to understand the new Jodejock features and I built the calendar.exe program from the samples. When I try to run it I get an error that it is unable to create the activex control. I tried to regsvr32.exe the codejock dll but that didn't work either. What step am I missing.?

Code: Select all

ERROR LOG of "C:\EXP19\XCodeJock\Samples\Calendar\Calendar.EXE" Date: 02/17/2010 06:47:37
Xbase++ version     : Xbase++ (R) Version 1.90.331
Operating system    : Windows XP 05.01 Build 02600 Service Pack 2
------------------------------------------------------------------------------
oError:args         :
          -> VALTYPE: U VALUE: NIL
          -> VALTYPE: U VALUE: NIL
          -> VALTYPE: U VALUE: NIL
          -> VALTYPE: U VALUE: NIL
          -> VALTYPE: U VALUE: NIL
          -> VALTYPE: L VALUE: .T.
oError:canDefault   : Y
oError:canRetry     : N
oError:canSubstitute: Y
oError:cargo        : NIL
oError:description  : Could not create ActiveX control
oError:filename     : NIL
oError:genCode      :       6503
oError:operation    : XBPACTIVEXCONTROL:CREATE
oError:osCode       : NIL
oError:severity     :          2
oError:subCode      :       6500
oError:subSystem    : Automation
The eXpress train is coming - and it has more cars.

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

Re: Cannot run sample programs

#2 Post by rdonnay »

You need to tell XcodeJock which version of CodeJock you are using.

This can be done one of 2 ways:

An environment variable:

Code: Select all

SET CODEJOCK_VERSION=13.0.2

or a function at the beginning of your app:

Code: Select all

CJ_Version('13.0.2')

I would suggest that you create the environment variable, this way you won't need to modify all the sample programs.
The eXpress train is coming - and it has more cars.

Post Reply