Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COM+ server
Message
De
06/09/2004 04:56:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
COM+ server
Divers
Thread ID:
00939679
Message ID:
00939679
Vues:
70
I have created a COM+ server:
define class TestServer as custom olepublic
   myProp = 12

   procedure SetProp(lnProp)
      this.myProp = lnProp
   endproc

   procedure GetProp()

   return this.myProp
   endproc
endefine
I have built my server as MTDLL, Multi Use.

On the server, I ran:
lobj = newobject("TestServer.TestServer")
lobj.SetProp(20)
?lobj.GetProp() && 20
On the client, at the same time:
lobj = newobject("TestServer.TestServer")
?lobj.GetProp() && 12, not 20
My question: why I don't get the same value on the client as on server? In MSDN is writting that MTDLL creates only one instance on server. What I did wrong?

Florin
TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform