Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Basic help with pcanywhere and vb 1

Status
Not open for further replies.

sibasis

Technical User
Mar 1, 2002
94
0
0
here is the code that I am trying to execute as a standard exe in vb, I am not being able to reference the winawsvr object so I cant compile am I doing something wrong ?

Private Sub Form_Load()
Dim RemotedataManager As Object
Dim Remotedata As Object
Dim s As String

Set RemotedataManager = CreateObject(winawsvr.RemoteDataManger)
s = RemotedataManager.ChangeDirectory("c:\liveobjects")
s = RemotedataManager.RetrieveObjectEx("pod.chf", 2, 0)
s = Remotedata.PhoneNumber(s)
MsgBox (s)


End Sub


thanks in advance
-sibasis
 
Hi, pansophic.

I think that you have to use " in the instruction

Set RemotedataManager = CreateObject("winawsvr.RemoteDataManger")

because the CreateObject function expects the name of the class ob the object instead the object itself.

Regards, sglugove
 
thanks sglugove,

but that didnt work for me yet :( you have any more suggestions....?

it says "activexcomponent cant create object" would you think that my installation of visual basic IDE wasnt correct in any way ?

thanks,
-sibasis
 
ooops typo :eek:) thanks sglugove I got it :)

-sibasis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top