Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 8 COM DLL Business Object to .NET problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00776588
Message ID:
00776680
Vues:
11
>I subclass my original business class, in the Init Method of the main object several objects that
>interact with the parent object are added. In VFP this works great, I'm able to access the child's
>object properties & methods, but as a com object called from a .Net c# project the properties &
>methos of thos child's objects are not available.
>Am I doing something wrong or is this an interfacing problem with VFP COM objects and .NET? or is a general problem with .net and COM.

No, it's just a straight COM issue, I think. I believe you'll find that if you try to instantiate that object in VFP instead of C#, you'll see the same behavior. When programs talk to COM objects, they're relying on the contract that was established at compile time, which gives the interface. When you add those objects, the interface knows nothing about them, which is why they can't be accessed from outside.

Does this make sense, or am I missing the point?

(Update: in other words, exactly what Claudio said. Should have read more carefully before posting. :-) )
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform