Hi

I am trying to use DCOM in vb6 so that I can remotely control the application.
I am having a hard time to instantiate the object that i created and is giving me an error : Object variable or a with block variable not set.
Here is the code

Dim loPublicRemote As ClsPublicRemote [ object created ]

Set loPublicRemote = CreateObject("ProjectName.ClsPublicRemote", fsAnswerStationName) [this is where the error is comming from]
sAnswerStationName is the remote computer name

CLASS: ClsPublicRemote is :
Public Property Get SingletonRemoteControl() As clsRemoteControl
Set SingletonRemoteControl = goRemoteControl
End Property

ClsRemotControl is a class which has all the buttons of the remote application.

I have tried to run a sample application that use Dcom and it works fine so I think the setting i did for dcomconfig are OK.

Can someone please help me with this