PDA

View Full Version : Visual Basic 6 versus latest Visual Basic



loucamente
02-18-2012, 05:50 PM
Well, I see that my programs written in VB.NET are more slow to load the webpages. I use microsoft visual studio 2010 and the latest version of VB. Someone can tell me a dll or anything that I can change or add for my programs to load pages more fastest? I don't know if is my internet, but if someone can test my "daily links visiter" and tell me, I say thanks. :upset:

Ashleys165
02-18-2012, 06:10 PM
I could test it for you, and it might be your wrapper too. I will see what I can do for you.

loucamente
02-18-2012, 06:46 PM
I could test it for you, and it might be your wrapper too. I will see what I can do for you.

It's true, I was thinking about be my wrapper too... Something about wait response or implementation codes not necessary.
Anyway, test my program please?

n00ne
02-18-2012, 07:06 PM
Considering you are only creating a daily doer it should not be complex enough to slow it down nor should it be noticeably slower just because it's in .net.

Ashleys165
02-18-2012, 07:07 PM
It's true, I was thinking about be my wrapper too... Something about wait response or implementation codes not necessary.
Anyway, test my program please?

What wrapper are you using? And where is your program available?

loucamente
02-18-2012, 08:38 PM
What wrapper are you using? And where is your program available?
[Only registered and activated users can see links]

The code for load a page is currently:

Public Function LoadPage(ByRef URL As String, Optional ByVal Referer As String = "") As String
On Error Resume Next
Dim request As [Only registered and activated users can see links] = WebRequest.Create(URL)
request.UserAgent = UserAgent
If UseProxy Then
request.Proxy = New System.Net.WebProxy(ProxyIp & ":" & ProxyPort)
End If
request.Referer = Referer
If UseCookies = True Then request.CookieContainer = Me.NeoCookies
Dim response1 As [Only registered and activated users can see links] = request.GetResponse()
Dim reader1 As StreamReader = New StreamReader(response1.GetResponseStream())
Dim f As String = New StreamReader(response1.GetResponseStream()).ReadTo End()
response1.Close() : reader1.Close()
LastResponse = f
Return f
End Function

I only need make neopets to think that I visited the url e get the html code of this page as return.

---------- Post added at 07:38 PM ---------- Previous post was at 07:32 PM ----------


Considering you are only creating a daily doer it should not be complex enough to slow it down nor should it be noticeably slower just because it's in .net.

I'm not creating a daily doer. I did it. The title of topic is "Visual Basic 6 versus latest Visual Basic" because I see that the infamous joe's aplication has a very fastest response time (for example). The daily doer isn't the center of it.

Ashleys165
02-18-2012, 09:05 PM
The program works fine for me! Excellent. I say leave the wrapper and other stuffs. Its all good.

loucamente
02-19-2012, 11:25 AM
The program works fine for me! Excellent. I say leave the wrapper and other stuffs. Its all good.

Thanks you, I liked your Daily Doer too. I'm going test some possibilities, like don't use the wrapper as another class where I do a object and ask Joe about dlls :P