Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Automation problem
Message
De
17/10/2001 23:06:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00568934
Message ID:
00570054
Vues:
24
Yes Nick,

This is THE EXACT CODE

*** COM1
*** Project VFPCom1

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

My purpose is that: I dont want users to create objects of VFPCom2.C2 directly.
The only way they can get VFPCom2.C2 objects is by VFPCom1.C1.

Pls help me
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform