Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Com+ Object Constructor
Message
 
To
11/10/2001 08:13:32
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00566872
Message ID:
00567863
Views:
14
>Does anyone know how to access objects from the object constructory object in Com+. I know how to do it in VB, but am looking into insight from VFP.
>
>Thanks
>Darren

See if this helps:
define class TestClass as session olepublic
     implements IObjectConstruct in mtxas.appserver.1
     
     cConnection = ""
     
     procedure IObjectConstruct_Construct(pCtorObj as variant) as void
     	this.cConnection = pCtorObj.ConstructString
     endproc
     
     
     procedure Init
        * normal class Init:  this gets called before the object constructor
        * cConnection is an ODBC connection string.
        
        nSQLHndl = sqlconnectstring(this.cConnection)
        
        * etc... 
     endproc
     
enddefine
You might need to register COM+ Services with the Intellisense Manager.

One other thing I've been experimenting with is putting the fully qualified path to an XML document as the construct string and putting more parameters and settings in the doc.

HTH,
Previous
Reply
Map
View

Click here to load this message in the networking platform