Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 8 COM DLL Business Object to .NET problem
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00776588
Message ID:
00776680
Views:
12
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform