purusingh1
Aug 3rd, 2004, 02:43 AM
I have dcom server installed in one computer and the client is in another.
Now it works if I do not include reference
<code>
dim obj as object
set obj=createobject(serverobject.clsid)
msgbox obj.fun()
</code?
but if I do so it does not work and gives error application_deined or object defiend error
<code>
dim obj as new serverobject.clsid
msgbox obj.fun()
</code>
what is the problem?
Now it works if I do not include reference
<code>
dim obj as object
set obj=createobject(serverobject.clsid)
msgbox obj.fun()
</code?
but if I do so it does not work and gives error application_deined or object defiend error
<code>
dim obj as new serverobject.clsid
msgbox obj.fun()
</code>
what is the problem?