Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with calling a function from CreateObjectEX
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Problem with calling a function from CreateObjectEX
Miscellaneous
Thread ID:
00413792
Message ID:
00413792
Views:
45
Hello all, hope you can help.

I'm working on an OLE server.
define x as custom olepublic
   property1 = ""
   ...

   function SetProp
      lparameters vcProperty, vuValue
      ...
   endfunc

   (other functions)
enddefine
ok. I create and have the server registered ok. I can even get valid object reference via CreateObjectEX( clsid, servername ), I can even call other functions within the server class. However, when I try to make a call to

loMyServer = CreateObjectEx( "clsid", "\\myserver" )
loMyServer.TestMethod1() this is ok

but on
loMyServer.SetProp( "property1", "new value")

I crash with OLE error Unknown name.

I have tried rebuilding all, recompiling the programs (all 2 of them in this sample) and even regenerating IDs. Even quitting out and restarting doesn't appear to help.

Any ideas? Thanks
Reply
Map
View

Click here to load this message in the networking platform