Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Automation problem
Message
 
To
18/10/2001 07:19:22
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00568934
Message ID:
00570646
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform