Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Distributing an iClassFactory2 control
Message
From
16/11/2001 10:20:44
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00582111
Message ID:
00582701
Views:
15
Larry -

Thanks so much for your help.

I suspected that the answer was going to be that it couldn't be done, but I just wanted to verify that fact before going back to the blackboard.

- George

>>Larry -
>>
>>Some more info --
>>
>>The code I use to instantiate the object is:
>>
>>LOCAL loHex AS 'HexValidEmail.Connection'
>>loHex = CREATEOBJECT('HexValidEmail.Connection')
>>=messagebox(ALLTRIM(STR(loHex.Error)) + ALLTRIM(STR(loHex.LicensedProcessors)))
>>
>>
>>It's from http://www.Hexillion.com (their HexGadgets)
>>
>George,
>I don't you will be able to use this control in a VFP application. I downloaded the eval version and the control is not in the list that can be added to an OLEControl. Therefore, it is not able to be inserted on a form or subclassed. This is the only way for VFP to use the IClassFactory2 technique. When you compile the form/class library, the license key information is embedded in one of the fields in the SCX/VCX. When VFP goes to instantiate the object, it passes that information to the constructor process. Even though the client machines don't have the design-time license, they have the run-time license information available.
>
>VB handles embedding the information differently. If you specify the control's name in an early binding statement, it embeds the run-time license information into the compiled code. Early binding by itself, which VFP 7 supports, doesn't do anything for you.
>
>Two different paths to achieve the same results: compile license information for later use. From the looks of the DLL, it looks like it was created using MS VC++. Unless they change the control or VFP is changed to handle strongly typed variables differently, it doesn't look like they are going to get used much in VFP.
>
>You might be able to create an ActiveX DLL in VB to wrap the functionality. The ActiveX Dll would have the compiled run-time license information in it. You could instantiate your VB DLL and use it to simply pass COM calls through to the 3rd party control.
>
>HTH.
Previous
Reply
Map
View

Click here to load this message in the networking platform