Tip Bank

DevX - Software Development Resource

CD-ROM Detection

Question: How can I find the CD-Rom drive letter(s) from Visual Basic 5.0? Answer: The simplest method is to call the Win32 GetDriveType API against drives C:-Z:.Private Declare Function GetDriveType

DevX - Software Development Resource

List boxes

Question: How can I put the output of a do-while loop in a list box then delete it for the next run?ex.o=0do (o=o+1)Randomize timerx=rnd( * 6)+1z=x*4Print z to loop Answer:

DevX - Software Development Resource

Java and Unix

Question: Is it possible to use Java to execute a command on Unix and get the output from that command? Answer: Yes. The java.lang.Runtime class has various exec() methods thatcan

DevX - Software Development Resource

Piping External Process Output

Question: I am attempting to run a series of externalapplications within JAVA. I need the resultsof the prev. application piped as input to thefollowup application. I understand the spawningof the

DevX - Software Development Resource

Generating Beep

Question: I want to alert the user of my application withan ASCII 7 bell character. When I run the application from a prompt and use System.out.println((char)7) I get the result

DevX - Software Development Resource

Deprecated API

Question: When I compile my applets or applications, the compiler often tells me I’d use a “deprecated API” and that I should recompile with the option “-deprecate”. If I do

DevX - Software Development Resource

Borland Database Engine

Question: Many companies offer Borland Database Engine replacements claiming to be smaller and faster. What does the BDE offer that these replacements don’t? Is there a good reason to keep

DevX - Software Development Resource

Which VB for me?

Question: I wish to create my own Windows program for a kart racing club that we can enter all the drivers for a race meeting, draw a grid for the