devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Unix select Equivalent

Question: Is there any Java facility like the Unix select() system call that will wait until there is something to read from a file descriptor before the programmer does the

StringTokenizer: Multiple Delimiter Characters

Question: I am writing a text search applet that searches through a text file loaded from the server. I am using StringTokenizer to isolate the individual words. The problem is

Comparing Strings

Question: I have defined a string variable using the following command: #define latinWord 64 char word[latinWord]; I want to use an If statment to see if the variable “word” is

Set a Counter Field

Question: Is there an easy way to increase certain fields in tables working as a counter from a third table in a master/detail form? For example: Order Table Item Table

Cout colors

Question: What can I do to make cout output text appear in different colors? I’ve looked in the iomanip.h file and didn’t see anything, and the textcolor() function in conio.h

NT remote execute

Question: How do I execute a batch file on an NT machine remotely from another Windows machine? Answer: You have a couple of choices, all from the NT Server Resource

Modifying File Timestamp

Question: Is there any way to change a file’s last modification time from Java? Answer: It is not possible to alter the time of last modification in Java version before

Loading automaticaly

Question: When I put my CD into my computer, it should start the programs automatically, but it don’t. I have to go to PROGRAMS to make it come up. Could

Foxpro 2.6 for DOS

Question: I know I’m a bit behind, but I would like to know how to create C programs for use in Foxpro for DOS. I have Foxpro 2.6 with LCK,

Preview in VFP

Question: I am going to give a preview of a report for a user, but a small window with a printer icon shows on the top. I don’t want the

FoxPro vs. Access

Question: I’m planning on using Visual Basic as a front end, but cannot decide on Access or FoxPro as the back end. Any big differences between the two? Answer: I

Java?

Question: I am looking for some way for ppl to sort info that I have in a table on my page. I have been told many many tiems that I

SQL and object reference in Fox Pro

Question: How can I can reference the value of an object to use in a select statement? My statment is being used in a Visual Fox Pro application, andso far

Get Data with GetString

DO recordsets have a handy little method called GetString that they inherited from RDO’s GetClipString. GetString returns the contents of a recordset into a formatted string. Here are three useful

Writing UDP Clients and Servers

o write UDP clients and servers, you have to use the DatagramSocket class. UDP is a connectionless protocol, so a UDP server doesn’t have to perform an accept() operation the

Hash Tables

Question: How can I implement a hash table such that each “bucket” is associated with two independent keys?I need to be able to store two data per bucket that are

Setting Heap Sizes

If your Java program requires a large amount of memory, it’s possible that the virtual machine will begin to throw OutOfMemoryError instances when attempting to instantiate objects. In some cases,

Make ASP-Generated Code Easier to Read With VbCrLf

Technically, neatness doesn’t count in the world of HTML source code. However, nicely formatted source code makes debugging easier and adds a professional touch to your work. That’s why HTML

Embed a User ID and Password in a URL

Frequently, a Web page or an FTP site has protected areas open only to those with a valid login. As you browse to the page, a form appears querying the

Use BreakIterator to Parse Text

Parsing text is a common, complex operation. For example, your application might need to allow users to enter text and then break the text into separate words or sentences for

Initializing const static Data Members

The C++ Standard now allows initialization of const static data members of an integral type inside their class. #include class Buff{private: static const int MAX = 512; //definition static const

A Simple Way to Detect Client Browser Type

There are so many tools and techniques to detect the client’s browser type. However, if you want a quick two-minute solution or you just want something simple, use this code

Understanding the One Definition Rule

The One Definition Rule (ODR) says that an inline function has to be identically defined in every translation unit in which it is used. Two definitions contained in different translation

Regular Expressions in JavaScript 1.2

One of the most powerful new features of JavaScript 1.2 is a set of objects and methods to provide regular expression functionality. Perl programmers have relied on regular expressions for

Propagate User Exceptions

In Java, you can propagate checked exceptions up a class hierarchy in two ways. First, you can declare the exception in the “throws” clause of the enclosing method. Second, you

Destructors Should Handle Exceptions Locally

It is legal to call a function that may throw an exception inside a destructor. However, it is important to handle any exception that might be thrown from such a

Avoid Improper Inheritance

Using public inheritance with two classes that do not fully comply with the is-a relation (although they are related to one another) is a common design mistake. For example, deriving