I am going to make a file coder in Visual Basic and I have some questions.
This program will be used to code files up to 4GB filesize and I don't know what would be the best way.
Since Visual Basic is not my best, I've started with a little program which copies the file byte to byte (in next versions, that byte should be coded). But doing it byte to byte it is too slow. Even doing it with strings of 16 bytes it could take up to 2 hours to code a 4GB file. I've tried to do strings of 1000 bytes but when I code around 2GB I get "runtime error 63, registry number incorrect".
Moreover, when I added a progress bar, the program got 5 times slower.
Is this normal? or can anyone give me a tip to make this better? maybe does it get faster in C?
Comments, opinions and help please :)
PS: source and destination files are opened "as binary", is it ok?