General information
Category:
COM/DCOM and OLE Automation
>>>>>>>>Luis, did you register your DCOM on the client PC with
>>>>>>>>clireg32 myDcom.VBR
>
>Yes I just did, and I did not make a difference.
>
>This is a pseudo code of what I am doing step by step
>
>Step 1, create a prg with the class definition
>
>DEFINE CLASS MyDCOM AS CUSTOM OLEPUBLIC
> PROCEDURE GetValue
> LPARAMETER tnValue
>
> DO CASE
> CASE tnValue=1
> RETURN 2
>
> CASE tnValue=2
> RETURN 4
>
> CASE tnValue=3
> RETURN 6
> ENDCASE
>
> ENDPROC
>ENDDEFINE
>
>Step 2
>Add the prg to an empty project
>
>Step 3
>Build the project as Com Server (exe)
>
>Step 4
>Run MyDcom.exe -REGSERVER, from the dos prompt
>
>Step 5
>Run CLiregReg32.exe MyDcom.vbr
>It pops a window to choose Remote Transport
>I click on Distributed Com
>And type my computer name in the Network Address, "\\Luis"
>
>Step 6
>Start AutMgr32.exe
>
>Step 7
>Grab the CLSID from the VBR file
>
>Step 8
>From the command window do a :
>loMyDCOM=CreateObjectEX(lcMyCLSID,"\\Luis")
>
>and then I got Class not registered.
>
>
>What am I missing here ?
>Thanks for your time to all you :-)
FWIW, I wasted a lot of time trying to use CreateObjectEx() on the same computer the server was installed on. It didn't work. DCOM servers need to be called from a different computer. Also, I don't know anyone who has had success getting a DCOM server to run correctly on Windows 98. You'll need Win NT/2K if you're not already using it.
HTH
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only