Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make a vcx from a prg
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01063204
Message ID:
01063391
Views:
31
I had to do this to. THe neat thing, if you use "DEFINE CLASS" to encapsulate the methods for your object is that you can still use them. My issue was related to the fact that runtime OCX licenses would not accept an "OLECLASS" reference in either ADDOBJECT() or DEFINE CLASS. I still wonder why a VCX is required 0 but that is a later discussion. At any rate I created an OCX VCX for each component and then in the define class statement:
DEFINE CLASS myLegacyClassName AS myOCXClassNameInmyOCXVCXFile OF myOCXVCXFile.vcx

I thought I would have to add a VCX for each instance of an OCX - but I did not. I only had to pull the olecalss reference from my addobject and define class.


>Sergey and Vladimir
>
>Many thanks. BTW it is now available on: http://leafe.com/dls/vfp
>
>Regards
>Cyril
>
>
>
>
>>>I know I can convert a vcx class to a prg. I want to do the reverse:-
>>>
>>>I have a prg that defines a class.
>>>Can I convert this to a vcx? If yes, how?
>>
>>http://www.leafe.com/dl.html don't respond.
>>Now I mail you prgtovcx.zip
>>HTH
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform