Tip Bank

DevX - Software Development Resource

Pass Data Between Threads Using Piped Streams

Java simplifies I/O by providing a rich library of classes that support stream interfaces. Among these classes, the combination of PipedInputStream and PipedOutputtStream closely resembles a UNIX system “pipe.” The

DevX - Software Development Resource

Short Vs. Int and Number Conversion

Question: 1) What is the difference between a int and a short variable? 2) How do I convert a number to binary from decimal? Answer: 1. Depending on the platform,

DevX - Software Development Resource

MFC vs. VB?

Question: I am not new to C++, but I am new to VC++. The question I have pertains to the usability of MFC versus the ease and power of VB.

DevX - Software Development Resource

Void Pointer and -> Operator

Question: I am a beginner to C++ and have looked into several resources but still have some questions. Can you tell me what a void pointer is and what it

DevX - Software Development Resource

More about sizeof() operator

Question: I’m using the sizeof() operator to find the length of my integers just like the Q&A section said, but it consistently returns a 4 regardless of integer length. What

DevX - Software Development Resource

Displaying a date

Question: I have a date stored as an integer — days from 1/1/1900. iis there an algorithm out there to display the day, month, and year? Or is there an

DevX - Software Development Resource

Command Line Parameters

Question: I want to write a DOS program that takes command line parameters and uses them in the program.For example, if the program was comline.exe and you typed in the

DevX - Software Development Resource

Strings

Question: How can I convert integers to strings? I’m using a gcc compiler under Solaris 2.6. itoa, which I used in VC++, doesn’t work. By the way, how can I

DevX - Software Development Resource

List Files With FileSystemObjects

One of Visual Basic’s handiest functions is the Dir function, which allows you to find all the files with a given filespec. VBScript does not have an identical function, but