Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Automation problem
Message
 
À
18/10/2001 07:19:22
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00568934
Message ID:
00570646
Vues:
21
Hi Jimmy,

I tried but i is working fine.

*** COM2
*** Project VFPCom2

Define Class C1 as Custom OLEPUBLIC
Proc GetMyObject
Local aa As Object
aa = CreateObject("VfpCom2.C2")
Return aa
EndProc

EndDefine

*** COM2
*** Project VFPCom2

Define Class C2 as Custom OlePublic
Proc DumProc
Return "Return from DumProc"
EndProc

EndDefine


If your servers (VFPCOM1.EXE / VFPCOM2.EXE) are on different PC & client is (Where you are creating instance) is on other PC. Use CREATEOBJECTEX().

I compiled it and created client in VB application. it's OK.

But the issue is user can create instace of VFPCOM2.EXE , without creating instance of VFPCOM1.EXE because both are seperate from each other. (Both are separate server.)



Ajay Mishra
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform