Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DynaZip as COM Object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00276945
Message ID:
00277065
Vues:
32
>>>I've downloaded the DynaZip demo and am impressed by it's features. The documentation talks about ActiveX and OCX Interfaces (which really isn't the proper terminology...but that's something they need to fix).
>>>
>>>My interpretation of this is that I can do a CREATEOBJECT() to get an instance of the Dynazip controls for both zipping and unzipping. However, all the samples show the OCX and there is nothing in the docs about CREATEOBJECT().
>>>
>>>Can I do a CREATEOBJECT() on DynaZip? If so, what is the object name?
>>
>>I created OLEcontrol classs of OLEClasses dzocx32.ocx and duzocx32.ocx. I then AddObject() my own classes to the container that has the buttons that do my zipping and unzipping. The first time I tried using the controls, I just placed them on the form, perhaps after subclassing them in this way. But I found that they used up a huge amount of memory, so I just ADDOBJECT() and REMOVEOBJECT() each one as needed.
>>
>>I still use version 3. I suppose you have version 4 if you just bought it. Perhaps the controls are slimmer.
>
>
>Bret,
>
>I'm trying to patch some old Fox DOS code to run in VFP 6.0 with as few modifications as possible. We're in the middle of design phase for a new system, but want to replace all the old Fox DOS to avoid any Y2K problems. The new system will completely replace what we have now. I don't want to create a form to use the OCX. The old code just did RUN PKUNZIP MyZip.ZIP. We tried just leaving this in, but ran into memory problems.

I just tried to CREATEOBJECT my class based on dzocx32.ocx from the command window. It said something like "OLE Object invalid for this container". You might need to place your zip control on a form. But since the control isn't actually visible, you can ADDOBJECT it to any form that happens to be open when you call it, as long as it's in scope. You might replace your zipping button with a container that has a zipping button and gets dynazip controls ADDOBJECTed to it as needed. That doesn't seem too invasive to me. There's no need to make a new form.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform