🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.asm.x86
2 messages
2 total messages Started by Megaman Sun, 04 Feb 1996 02:53
Various Questions for DOS Programming...HELP NEEDED
#33
Author: Megaman
Date: Sun, 04 Feb 1996 02:53
32 lines
1690 bytes
Hello,
   I just have a few questions to pose.

   BTW: I use Watcom 10.5 

(1) I am trying to create a quick text based 80x50 GUI.  All I need to create
is two "file list boxes" on the left and right, and a set of buttons in 
between.  Nothing moves around on the screen, except the mouse.  If anyone
can please explain how I might do this, or point me to a reference, I would
be most appreciated.

(2) Unfortunately Watcom's built in function that tells you how many drives 
you have on your system is determined by the LASTDRIVE= line in the config.sys.
Does anyone have an example of code that I can get EXACTLY how many, and
possibly, what type (ie. CDROM, etc) are attached to a computer?

(3) What is the best way to perform a file "COPY" instruction?  Should I make
a call to system(), or should I try to make my program more internal by
writing my own "COPY" procedure?  If so, what is teh best way to do this?

Thanks for taking the time to read these.  

Thomas
Trinity University

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
http://www.cs.trinity.edu/~trauschu

Computer Science Major
3D Graphics 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Re: Various Questions for DOS Programming...HELP NEEDED
#34
Author: Prince of Darkness
Date: Tue, 06 Feb 1996 21:55
9 lines
1015 bytes
trauschu@cs.trinity.edu (Megaman) wrote:
>(3) What is the best way to perform a file "COPY" instruction?  Should I make
>a call to system(), or should I try to make my program more internal by
>writing my own "COPY" procedure?  If so, what is teh best way to do this?

------- Well, I can help you with this one. THe best way to make your
own copy command is to open the two files [one for read and one for
write] and read from the source file in large blocks, say 32 or 64K.
Then write those blocks to the destination file.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads