| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Interface Change Request, Files > 4 GB |
| Niels Erik Knudsen From: Odense, Denmark Posts: 5 Member Since: 03/24/03 |
posted May 6, 2003 11:30 AM Hi, I have a change request for a future version of the DartFtp Component. The component can handle files bigger than 4GB, but methods handling filesize truncates the filesize (bit 33..). Is it possible to return the filesize as a Variant, VT_I4 or VT_R8 depending on the size returned. Like the Size method of FileSystemObjects from Microsoft. problem areas: -------------- Progress Event Store Method Rethrive Method Get Method ListEntry.Size Property Regards Niels Erik Knudsen |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted May 7, 2003 12:24 PM Hi Niels, Thanks for your suggestion. Unfortunately, in VB (which the majority of our customers use) the Size is limited to a long, so changing the data type would not help. If you need the file's size, it can be parsed from the Ftp.Listing.Text, but, as you say, the ListEntry.Size, the ProgressEvent Size, etc, will not be correct. The Ftp.Net product does fully support files this large. -ken |
| Niels Erik Knudsen From: Odense, Denmark Posts: 5 Member Since: 03/24/03 |
posted May 7, 2003 12:48 PM Hi, its actually quite simple to do, in the fire progress method in the component: // Copied is a LARGE_INTEGER if (Copied.QuadPart > 0x7FFFFFFF) { pvars[2].vt = VT_R8; pvars[2].dblVal = (double)Copied.QuadPart; } else { pvars[2].vt = VT_I4; pvars[2].lVal = (long)Copied.LowPart; } and in the receiving vb: Private Sub DCpy_OnProgress(ByVal TimeElapsed As Long, ByVal TotalBytesTransfered As Variant, ByVal TotalFileSize As Variant, bCancel As Boolean) Regards Niels Erik Knudsen |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 7, 2003 12:55 PM Hi Niels, Thanks for the suggestion. Unfortunately we can't change the event parameters or we would break the DLL for existing customers. When we originally designed the object, a long was used and we have to stick with that. If this is crucial for you contract us to build a custom DLL for you, but since the .NET FTP supports what you want, I'm not sure why you would want to do that. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|