Page 1 of 1

Cannot run sample programs

Posted: Wed Feb 17, 2010 9:45 am
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

Re: Cannot run sample programs

Posted: Wed Feb 17, 2010 9:46 am
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.