Login  
Search All Forums
Dart Home | PowerTCP Winsock for ActiveX | Custom Development Reply | PowerTCP Winsock for ActiveX Topics | Forums   
AuthorForum: PowerTCP Winsock for ActiveX
Topic: License Message on Client Machine
DDBerlin

From: Berlin, Germany
Posts: 5
Member Since: 06/04/07
posted November 25, 2007 6:15 AM


Great, I have everything ready and working, now the first setuptests on "Client"-machines show a "no license for this component" dialogue.

I have read a bit through this forum but maybe You have a workable solution for me without the need to recode everything.

I have an application written in Visual FoxPro 9 (SP2) with a collection of "device-Connectors" to one or more devices connected to the machine via serial or IP-Communication.

The IP-Connector-class uses the DartSock-Control. The class itself implements the interface and catches the events.

*===================================
TRY        
  this.oSocket = create("Dart.Tcp.1")

  if ! eventHandler(this.oSocket, this, .F.)
    acti screen
    ? "IP-Connector not bound"
  endif

CATCH to loError
  this.cErrorText = "Unable to load TCP-Control "+ loError.Message
  llRetVal     = .F.

ENDTRY
*===================================

This works like a charm but the =create("Dart.Tcp.1") is probably the reason for the problem as this way I am not carrying the Licenseinformation with me.

So I tried to subclass the control, this way having it in the project.

This however gives me an "Object Class is invalid for this container" error when I try to
this.oSocket = = newObject("DartWinSock", "DartWinSock.vcx")

So, third approach is to add a dummy form, put the control on it and bind to this like

*===================================
TRY
  this.oSocketForm = create("Form")
  this.oSocketForm.NewObject("oSocket", "DartWinSock", "DartWinSock.vcx")

  this.oSocket   = this.oSocketForm.oSocket
  
  if ! eventHandler(this.oSocketForm.oSocket, this, .F.)
    acti screen
    ? "IP-Connector nicht gebunden"
  endif
CATCH to loError

  this.cErrorText = "TCP-Control kann nicht geladen werden "+ loError.Message
  llRetVal     = .F.
ENDTRY
*=================================

Now this throws me a "Type, argument, bla bla -exception" whith the eventhandler probably accepting my interface implementation anymore.

Any Idea for a working solution for this?

I have read some hints from You saying "create an empty project with a simple form and the control on it and run that on the client machine" but I am not sure if that was just for testing the general function or if this is a means of carrying the license information to the target-machine.

Thanks for any help

Kind regards from Berlin

Frank




Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted November 26, 2007 8:43 AM

Hello Frank,

With regards to the query I would suggest you to please add an instance of the control on the form and then distribute your application. This should take care of the licensing part.
The other option is to create a similar registry entry on your machine into the registry of any machine using your app.
This option is described on the Distribution page of the help file, under "Distribution Under IIS."
You may find the registry entry at the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Dart\PowerTCP\License\<Tool>

I hope this helps.

Have a great day.

Regards,
Arjun

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

DDBerlin

From: Berlin, Germany
Posts: 5
Member Since: 06/04/07
posted November 26, 2007 10:50 AM

Arjun,

> I would suggest you to please add an instance
> of the control on the form and then distribute > your application. This should take care of the > licensing part.

I have added an empty form with the component on it to the project and shortly call that form when starting the application (did not do anything with the component though). When later in the real form I instantiate the component and start working with it, I still get the error.


> The other option is to create a similar 
> registry entry on your machine into the 
> registry of any machine using your app.
> This option is described on the Distribution
> page of the help file, under "Distribution
> Under IIS."

I have meanwhile found another topic here that pointed me in this direction. So I modified my setup-program to add this registry-Entry with my serial-No. That works wonderful. So if that is an acceptable solution for You and not violating any license-agreement, I'll do that.

Thanks for Your reply

kind regards

Frank Dietrich



 


 
Arjun

From: Rome, NY, USA
Posts: 137
Member Since: 09/17/07
posted November 28, 2007 8:28 AM

Hello Frank,

Yes, you can.

Regards,
Arjun

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerTCP Winsock for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX