|
-
Jul 8th, 2002, 06:06 AM
#1
Thread Starter
Member
FTP using .Net (Not Inet)
Has anyone tried building a VB.Net FTP object?
I've managed to build one in VB6, but need to create it using VB.Net.
The problem I'm getting is both VB6 and VB.Net return the same handle for the InternetOpen API call, but different handles for the InternetConnect API call.
The handle returned by the .Net seems excessively large too!
I don't understand why the same API function (with the same parameters) should return different values in VB6 and VB.Net
Please, please, please help
-Rob
-
Jul 8th, 2002, 07:43 AM
#2
Did you think about changing a Long to an Integer in the API declarations?
-
Jul 8th, 2002, 08:17 AM
#3
Thread Starter
Member
Thanx for the speedy reply
If I change the Long to an Integer in the API declaration, the function then returns 0, and therefore appears to break it.
The connection number returned when using a Long is 7135819915826561024, which seems ok, but raises errors in subsequent API calls - Invalid Handle.
-
Jul 8th, 2002, 09:24 AM
#4
Thread Starter
Member
-
Jul 8th, 2002, 09:30 AM
#5
In VB.NET a long is 64 bit, while all API functions expect 32 bit integers. All VB6 Longs should be replaced by integers (and not only the return values).
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
|