Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Active X Object
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Active X Object
Miscellaneous
Thread ID:
00230088
Message ID:
00230088
Views:
54
How can I implement and active X (ocx file) in an application without dropping it onto a form? This is copy protection software and I am trying to create an object defined through a calss that specifies the ocx file I am implementing.

My class looks like this:

DEFINE CLASS SoftProtectionX1 as OLEControl
DocumentFile = "D:\source\vfp\dev\SoftProtectionX1.ocx"
ENDDEFINE

My create code looks like:

SoftProt=CreateObject("SoftProtectionX1")
SoftProt.Execute

Thanks,
Mike
Next
Reply
Map
View

Click here to load this message in the networking platform