Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Com+ Object Constructor
Message
 
À
11/10/2001 08:13:32
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00566872
Message ID:
00567863
Vues:
15
>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,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform