[SOLVED] XamlChart and Markup distrib |
Post Reply |
Author | ||
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
Posted: 04 September 2009 at 3:36am |
|
Using the wonderful Markup control with the XamlChart example, everything works OK on my PC (with CJ controls installed). I compiled the app and it still runs OK.
But when I try it on another PC, I get Run Time ERROR 429 -- ActiveX Component can't create object. I have copied the Codejock.Markup.v13.1.0.ocx to this other PC and registered it OK. Also the Codejock.Controls.v13.1.0.ocx and Codejock.Commandbars.v13.1.0.ocx. Yes I have registered the XamlCharts.dll. I am guessing the error occurs on this line: CreateObject("Codejock.MarkupLabel.13.1.0") Any ideas what else I must install on the other PC to use the Markup ?? |
||
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
||
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
|
Aaargh!! I spent hours on this problem.
And now I find the solution is very simple. BUT I don't think you will like the solution. If I copy my Codejock.Markup.v13.1.0.lic file to the other PC, then the XAMLchart works OK. If I remove the licence file, then the XAML app reports ERROR 429 -- can't create object. So the compiled app will only work if the .lic file is on that PC. I think this is a problem for Oleg to look at :-) |
||
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
|
Hi, Try in project settings change option "Remove unused liceses" (something like that)
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
|
In the Project Properties
the box "Remove information about unused ActiveX Controls" is checked. But this does not change the need for the .LIC file. |
||
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
||
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
|
Hey Chris,
I don't have time to test it on a machine without CJ controls installed right now, but try this and tell me if it works (I assume you are using my chart sample?): 1) Open the XamlCharts.vbp file located in the DLL folder (not the VBG or Test project). 2) Click the Project menu and then click Components. 3) On the Controls tab, scroll down until you find the Xtreme Markup Control entry and clear the checkbox, then click OK. 4) Click the Project menu and then click References. The References window appears 5) On the References window, click the Browse button. The "Add Reference" window appears. 6) In the "Files of type" list, select "ActiveX Controls" 7) Navigate to the Codejock bin folder (usually C:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX VERSION\Bin", then select the Codejock.Markup.v13.1.0.ocx (or Unicode version if requried) and click Open. 8) Back on the References window, click OK. 9) Open the modXaml code window, and remove the "Private Const mc_MarkupLabelVersion As String = "13.0.0"" line. 10) In the xamlEngine function, change this line:
To this:
11) Recompile and try it again on a non-CJ development computer. Does it work now? |
||
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
||
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
|
Yes that works.
Many thanks. This method of creating objects seems more "normal" so I am pleased I do not need to know about the ProgIDs :-) |
||
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6
|
||
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
|
No problem, glad it worked (thanks for testing it). I will update my sample ASAP.
|
||
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |