Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying "big" files with VB 4.0 16 bits

Status
Not open for further replies.

Luiggi

Programmer
Nov 25, 1998
4
0
0
US
I made an application that copy files (bigger than 80 MB)from a local to a network disk throught a dial up connection (33.600 bps). But when the "copy" begin, I lose the control to perform another process (for example: Display a blinking alert like "...copying files...1%,2%," and so on.)<br>
Do you know any way to do this?<br>
<br>
Thank you!!!!
 
I think what U want is to use the DoEvents command. This will allow other processes to have a chance at updating the screen etc.<br>
<br>
Be carefull where U put it in though as it will seriously slow down your program as it gives up time slices to any other process that wants to grab them!<br>
<br>
I you just want to yeild on key or mouse events you can use :<br>
<br>
Declare Function GetInputState Lib "user32" () as Long<br>
<br>
and in your loop put :<br>
<br>
if GetInputState() then Doevents<br>
<br>
hth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top