Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Automation problem
Message
 
À
16/10/2001 08:08:39
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00568934
Message ID:
00569181
Vues:
29
Jimmy, I am not sure that you posted the exact code but I don't see OLEPUBLIC keyword in your DEFINE CLASS line.

>Hi,
>I used VFP7 to write a COM server. They look like this
>
>*** COM1
>*** Project VFPCom1
>
>Define Class C1 as Custom
> Proc GetMyObject
> Local aa As Object
> aa = CreateObject("VFPCom2.C2")
> Return aa
> EndProc
>
>EndDefine
>
>*** COM2
>*** Project VFPCom2
>
>Define Class C2 as Custom
> Proc DumProc
> Return "Return from DumProc"
> EndProc
>
>EndDefine
>
>I run Racmgr32.exe to allow VFPCom1.C1 to "Allow Remote Activation" (allow creating object remotely)
>Note: Only VFPCom1.C1 , not VFPCom2.C2
>
>
>I run "Automation Manager" on Win9x , clients can call C1.GetMyObject successfully and get hanlde to a new object of C2.
>
>The problem is that: When i port Com Server and "Automation Manager" to Windows 2000, client can't call C1.GetMyObject.
>
>This is code in client:
>
>aa = CreateObject("VFPCom1.C1") && successfully
>bb = AA.GetMyobject && Fail, an error say that OLE Error Code: The RPc server is unavailable.
>
>I really dont know why?
>
>Pls help me, Thanks a lot.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform