Home > database >  Use ConnectTonewRemoteObject call DCOM return - 3 unable to create object
Use ConnectTonewRemoteObject call DCOM return - 3 unable to create object

Time:09-20

Use ConnectTonewRemoteObject call DCOM return - 3 unable to create object

CodePudding user response:

Object name write wrong?

Brothers, stick the code

CodePudding user response:

Oleobject olecom

Olecom=create oleobject

Int m
M=olecom ConnectToNewRemoteObject (" pb ", "PB115. N_compb11")
If m & lt;> 0 then

Messagebox (" ", string (m))
Destroy olecom;

Return

End the if

String ls

Ls=olecom. Getzyh ()

Messagebox (" ", ls)

Destroy olecom;

The first parameter is the name of the server, the second parameter is the name of the class,
In local connecttonewobject, be able to put it on the server returns - 3, that also no problem to connect to the server, is olecom cannot instantiate (can't create the object), the problem also bothers me half a month, hope have experienced brothers to give directions, thank you!

CodePudding user response:

Solve this problem with WEBSERVICE is very good, but I now have PB8, does not support the WEBSERVICE, my QQ is: 1679705402, willing to exchange friends please contact,

CodePudding user response:

Never study web field of pb, help bumps
  • Related