|
-
Jul 31st, 2000, 10:33 PM
#1
Thread Starter
New Member
Dear fellow programmers,
I've been writing an application that requires a socket on the internet. By doing this I have used the Winsock connect method together with .RemoteHost and .RemotePort properties. While stepping thru each line of code, the 'Dial-up Connection' box appears after executing Winsock.Connect statement without trouble. However, after making the source into an executable file, my program no longer prompts the user with the 'Dial-up Connection' box!
My machine is running Windows 95 with Internet Explorer 4 and programming in VB5 professional edition.
The program I've tried testing with is:
Private Sub Command1_Click()
Winsock.RemoteHost = "www.msn.com" 'RemoteHost can be any valid URL
Winsock.RemotePort = 80
Winsock.Connect
End Sub
I then tried testing my program on another machine running Windows 98 with IE5 and the executable program works without a hitch. That is, it brought up the 'Dial-up Connection' box each time!
Can anyone please explain why this is happening with any remedy or solutions to this problem? Any other information will be greatly appreciated.
-
Aug 1st, 2000, 11:24 PM
#2
Fanatic Member
It could have something to do with the amount of time the OS takes to complete the request and maybe a Doevents() somewhere might fix it
DocZaf
{;->
If it works whilst debugging but not when compiled then usually it can be remedied.
-
Aug 7th, 2000, 12:53 AM
#3
Thread Starter
New Member
In reply to my post, the cause and solution to the problem is with Internet Explorer. When tested on IE4 the executable file didn't work at all. But with IE5, the program works every time.
So I experimented with upgrading my old IE4 to IE4.01 with the Service Pack 2 and my executable worked like a dream!!!
I would suggest to everyone programming internet based programs to upgrade their Internet Explorers to at least version 4.01 SP2!!!
Regards,
Storm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|