My program seems jammed during the call of long Api
My program seems jammed during the call of long Api.
The program reads portions of files from the disk and writes them on Cdrom (with direct cd) through the Api WriteFile , and Createfile
Public Declare Function WriteFile Lib "kernel32"
Public Declare Function CreateFile Lib "kernel32" Alias "CreateFileA"
The size of each file is of 100 [mb].
During the call of the Api, that lasts many minutes, the WHOLE program stops answering and stops repaint the screen. The program came back to respond at the end of the Api-writing operations.
I have tried with doevents, but he doesn't do nothing..
Does anybody know how do it transparent way, without give the impression that the system is jammed?
I am relatively new in Visual Basic
Tank a lot
but I am relatively new in Visual Basic, and your piece of code is too complex, I don't understand all.
The principal thing is that my program writes a file on the cd during a reading loop , and that the file comes written is the content of a byte array. (derived from the reading of a file of 2,5 gb on hard disk) ( did you remember the programs for chop large file in disckettes, my program do the seim in cds)
How i can pass the content of the array to an external program?