Loading...

Automatic License Entry

Support for GdImageBox OCX and GdImageBox Pro ActiveX/SDK.

Automatic License Entry

Postby BCWGuy » Fri Jun 03, 2011 8:10 pm

I'm using Delphi 2007, and would like to have my License key be automatically entered when I drop a new gdPicture control on a form or create it dynamically. I've tried modifying the GdPicturePro5_TLB.pas file Delphi uses for thins like InitControlData, and I've tried making a .LIC file, but nothing has worked so far. It would be great if the control checked for a registry setting to obtain the license key, and the installeer could put that value in the registry (just for developers).

Any ideas or examples how I can avoid pasting in the license key each time I create a control or drop it on a form?
BCWGuy
 
Posts: 4
Joined: Fri Jun 03, 2011 8:05 pm

Re: Automatic License Entry

Postby BCWGuy » Mon Jun 06, 2011 5:45 pm

Never mind. It turns out that doing this works in the DoCreate methods of the pas file:
FIntf.SetLicenseNumber('xxxxxx');

The only problem is that the license doesn't show up in the design-time properties, but it does work.
BCWGuy
 
Posts: 4
Joined: Fri Jun 03, 2011 8:05 pm


Return to GdImageBox [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron