| View previous topic :: View next topic |
| Author |
Message |
googie12 Newbie
Joined: 26 Jun 2004 Posts: 2
|
Posted: Sat Jun 26, 2004 9:20 am Post subject: vdsinout.dll copying a file |
|
|
I am trying to copy a file using vdsinout.dll and my code is as follows:
| Code: |
external vdsinout.dll
%E = 32767
%F = 0
:START
%R = @IO(READC,c:\a.bmp,%F,%E,@chr(255))
%C = @IO(WRITC,%R,c:\b.bmp,%F,%E,@chr(255))
%F = %E
%E = @SUM(%F,32767)
if @EQUAL(%C,32767)
goto start
else
exit
|
It copies the whole file, I get the correct number of bytes but you still cant view the bitmap. I have tried using diferent character but only @CHR(255) works. If anyone has made something like this before I would apreciate your help. I have read other posts on this sort of thing but they seem to point towards using binfile or another dll. I need to use vdsinout only.
Thanking you all for your help! |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Jun 26, 2004 6:38 pm Post subject: |
|
|
A little other suggestion, you use the if-else-end statement without the end command. Although you have an exit command after the else label, you really should use the end command to prevent that other code can not be runned:
| Code: | if @equal(%C,32767)
goto start
else
exit
end |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|