Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sharing Object Reference among COM Objects
Message
From
16/01/2002 22:06:56
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Sharing Object Reference among COM Objects
Miscellaneous
Thread ID:
00605886
Message ID:
00605886
Views:
60
Suppose I have several business COM objects that use the same class to perform data services. Is there a way to create the object once and share it among the various business objects? I could set a property on the business object after I instantiate it, but then it wouldn't be stateless. I really don't want to pass the reference in as a parameter to every method. Does anyone do this, or is it typical to create a new data object for each business object? That seems like a waste.

Thanks.
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Next
Reply
Map
View

Click here to load this message in the networking platform