devxlogo

Tip Bank

DevX - Software Development Resource

Setting icon image for dialogs in java

Question: How can we set icon images for the dialogs? Answer: There is currently (as of Java 1.1 and 1.2beta3) no way to set icon images for dialogs. On most

DevX - Software Development Resource

Java Pausing Abilities

Question: I want to make my Java program pause for a specified amount of time, but I don’t want to use a threading implementation. How can I do this? Answer:

DevX - Software Development Resource

Submitting a form with extra fields

Question: I have a form that has three popup menus on it (among other things), and a hidden text box. A value is placed in the hidden text field based

DevX - Software Development Resource

Avoid Exit Sub and Exit Function

It is bad programming practice to exit a subroutine or function at any point other than its end. If you want to bail out of a routine, and do not

DevX - Software Development Resource

String formatting

Question: Is there a function that will format a string for number or, say, $$ display? For example: format 1000000 to 1,000,000? Answer: No, the C standard has no such

DevX - Software Development Resource

Remote access server

Question: We have installed a Windows NT 4.0 server with remote access server service installed. I am able to connect to the NT server from home using a dial-up connection

DevX - Software Development Resource

Adding to the front of an array

Question: I have to read in integers and be able to add them to the front of the array. How do I do this? Answer: You can either use the

DevX - Software Development Resource

External file execution

Question: How can I code a Visual C++ program that will execute a DOS bat file? Or any other executable file, for that matter? Answer: Use the system() function. This