I need to copy a large file from pocket pc to my desktop and vice
versa. I tried using the CeRAPI library, but i get an overflow error. can
any one please tell me what am i doing wrong.
The file is 4.53 MB in size. and this is the code i am using
/////////////////////////////////////////////////
Dim bytBuffer(4605952) As Byte
dim lngFileHandle as long
dim lngBytesRead as long
lngFileHandle = CeCreateFile(Form1.txtPPCfile.Text, GENERIC_READ,
FILE_SHARE_READ, vbNullString, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)
intRetVal = CeReadFile(lngFileHandle, bytBuffer(0), 4605952,
lngBytesRead, 0)
/////////////////////////////////////////////////////////
when i run the above code, i get an overflow error. Is there a limit
on how big a file can be? Or am i missing anything
thanks
Nirankar