forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


vdsinout.dll copying a file

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
googie12
Newbie


Joined: 26 Jun 2004
Posts: 2

PostPosted: Sat Jun 26, 2004 9:20 am    Post subject: vdsinout.dll copying a file Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jun 26, 2004 10:50 am    Post subject: Reply with quote

Why aren't you simply using the file copy command? Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jun 26, 2004 6:38 pm    Post subject: Reply with quote

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: Smile

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group