Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing states of objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00562427
Message ID:
00562504
Vues:
14
>Hi!
>I think it not possible in VFP6.
>It may be done easily in C++ with OLEDB datasource (for instance, take a look on article "Getting and Setting IPersist* Objects" in OLE DB Programmer's Reference).
>Probably it may be done in VFP7. AFAIK VFP7 can work directly with COM interfaces. You need to use Load and Save methods of IPersistStorage, IPersistStream or IPersistFile interfaces of COM object.
>Good luck!

Of course, this presumes the IPersistFile interface was implemented in the COM object. If so, you can a reference to it using the new GetInterface() function in VFP 7.

The OLE Viewer that comes with Visual Studio 6 can be used to interrogate the COM object and see if the interface was implemented.

>
>>It was not the thing i was looking for. Just as one can store an array into a memo-field i would like to store an object in a table. The object i like to store is created from a COM-object written in java. Instead of creating an empty object for every instance i would like to review it would be much simpler to retrieve the object from a table. I understand that it has something to do with "State".
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform