![]()  | 
 
DatePicker Problem | 
 
    Post Reply  
   | 
  
| Author | |
   
   jcollier  
   
   Senior Member  
   Joined: 15 February 2006 Status: Offline Points: 250  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: DatePicker ProblemPosted: 28 June 2006 at 5:28pm  | 
 
| 
   
    
   Using the DatePicker Sample, the Click Here part in the top right corner on works like a champ on my development machine.  However, when I create an exe from that project and put it on a production machine with the Calendar control registered, I get runtime 429.  ActiveX couldn't create object. 
   
  Please help. I'm at a standstill. Thanks!  | 
 |
![]()  | 
 |
   
   jcollier  
   
   Senior Member  
   Joined: 15 February 2006 Status: Offline Points: 250  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 29 June 2006 at 3:45pm | 
 
| 
   
    
   Any ideas for this?  If I need to provide more detail, please let me know what you need. 
   
  Thanks!  | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 29 June 2006 at 3:51pm | 
 
| 
   
    
   Possibly a license issue?  Or maybe you have an old version of the OCX on your build machine and are creating the date picker with the old version?  Can you post the code?
    
   
   | 
 |
![]()  | 
 |
   
   jcollier  
   
   Senior Member  
   Joined: 15 February 2006 Status: Offline Points: 250  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 29 June 2006 at 3:56pm | 
 
| 
   
    
   No need to post the code, it's the VB 6 DatePicker Sample supplied by CJ.  It works fine on my build machine but does not work on any production machines.  The production machine that I am testing with has never had any codejock controls installed on it.
    
   
   | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 29 June 2006 at 4:02pm | 
 
| 
   
    
   You use this code? 
   
  Dim pDatePicker Set pDatePicker = CreateObject("Codejock.DatePicker." + XtremeCalendarControl.Version) What is the client machine so I can test  | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 29 June 2006 at 4:14pm | 
 
| 
   
    
   Ok, I found the reason, you need the license to use createobject: 
   
  Dim pDatePicker XtremeCalendarControl.License = "Calendar Control Copyright (c) 2003-2006 Codejock Software" & vbCrLf & "PRODUCT-ID: Codejock.Calendar.ActiveX.v10.2" & vbCrLf & "VALIDATE-CODE: XXX-XXX-XXX-XXX" Set pDatePicker = CreateObject("Codejock.DatePicker." + XtremeCalendarControl.Version)  | 
 |
![]()  | 
 |
   
   jcollier  
   
   Senior Member  
   Joined: 15 February 2006 Status: Offline Points: 250  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 29 June 2006 at 4:20pm | 
 
| 
   
    
   Great.  Do I literally use the XXX-XXX-XXX-XXX or should I replace that with some value?  If I need a value, where do I get it? 
   
  Thanks again.  | 
 |
![]()  | 
 |
   
   SuperMario  
   
   Senior Member  
    
   Joined: 14 February 2004 Status: Offline Points: 18057  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 29 June 2006 at 4:23pm | 
 
| 
   
    
   
No, not the XXX.  That was omitted on purpose 
   
  ![]() See this link for all the details, but in your case you can leave the code where I posted it. http://www.codejock.com/support/articles/com/general/g_3.asp From the article: "You will need to provide the correct Product Id and Validate Code. This information can be found in the LIC file. The LIC file is located in the same location as the OCX file. By default, the location of the OCX and LIC file is the "..\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX 2006 Q2\bin" for the Xtreme Suite installation."  | 
 |
![]()  | 
 |
   
   jcollier  
   
   Senior Member  
   Joined: 15 February 2006 Status: Offline Points: 250  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 29 June 2006 at 4:57pm | 
 
| 
   
    
   It works!  Thanks again for the help.
    
   
   | 
 |
![]()  | 
 |
    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  |