The Latest

DevX - Software Development Resource

Correctly Defining a Function in an Unnamed Namespace

The use of the static keyword is deprecated when declaring objects in a namespace scope; the unnamed-namespace provides a superior alternative. Nonetheless, it is important to know how to define

DevX - Software Development Resource

Be Cautious with Equality Tests on Literal Strings

It is perfectly legal to use of the equality operator to compare literal strings. However, the results might be surprising: bool eq;eq = “Mungojerrie” == “Rumpleteazer”; //not what you expect

DevX - Software Development Resource

A C Renaissance?

The rumors about the obsolescence of C were immature. In fact, some of the latest developments in the software world indicate that C is still a leading programming tool. Linux

DevX - Software Development Resource

Change the SQL Server Configuration Option

You can use sp_configure with RECONFIGURE to display or change server-level settings. However, some configuration options require a server stop and restart to update the currently running value. RECONFIGURE does

DevX - Software Development Resource

Passing More Arguments to a Callback Function

Callback functions have a fixed signature so you cannot alter the number or type of the arguments it takes. For example, the standard qsort() function takes a pointer to a

DevX - Software Development Resource

Greet CC++ , a Parallel Programming Language

CC++ (this is not a typo) is a parallel programming language based on C++. You can find a free CC++ compiler as well as an overview of CC++ features, syntax,

DevX - Software Development Resource

Visit Dennis Ritchie’s Homepage

The homepage of Dennis Ritchie, the creator of C and a coauthor of the legendary The C Programming Language, is probably the best virtual museum of the C programming language.

DevX - Software Development Resource

Catch Exceptions by Reference

Although you can catch an exception by value, as in the following example: catch( Exception except) // by value { // Related Posts Branson’s brave sale of Virgin Records safeguarded

DevX - Software Development Resource

Posting Two Forms Simultaneously

Question: I have an HTML page containing two forms. One form uploads an image file and needs to have an encryption type set while the other sends a plain set

DevX - Software Development Resource

Using Pointers to Return More Than One Value

Question: Can you show me an example that demonstrates how to use pointers to return more than one variable? Answer: A function cannot return more than one value. However, you

DevX - Software Development Resource

Reading Files on Client Machines

Question: I have to use the Scripting.FileSystemObject in a script on the client side because I have to read a file from the client disk. Because the Scripting.FileSystemObject is not

DevX - Software Development Resource

Change Your Selection Mode

Did you ever want to copy a block of preformatted text or a long concatenated SQL string, but wished that InterDev didn Related Posts Tech Layoffs Are Getting Worse GloballyReverse

DevX - Software Development Resource

Improve ASP Performance

You can improve on ASP performance by avoiding the use of server-side #include directives to include large lists of constants. Instead you can use the new tag to import type-library

DevX - Software Development Resource

Choose Consistent Case for Open and Close Tags

Writing well-formed HTML is really quite simple. It has the benefits of markup being unambiguous as well as a way to increase the robustness of the Web, while simplifying and

DevX - Software Development Resource

Navigate Back to the Target

One of the easiest methods to navigate back to the page where they came from is with JavaScript object.property called document.referrer. This document.referrer means the page that referred the current

DevX - Software Development Resource

Setting Timeout for ADO

If you have a data driven Web site, you might provide functionality so that a user can delete records from the database via a Web page. If there are lots

DevX - Software Development Resource

How to Construct Images in Memory

There are many simple images (stripes, hue gradients, fractals, and the like) that can easily be constructed in memory via code. To do so, you need a one-dimensional array to

DevX - Software Development Resource

Exploit Serialization To Perform Deep Copy

The clone() method of java.lang.Object class makes a shallow copy of anobject i.e. a copy that excludes the objects that the to-be-cloned object contains. Therefore, to produce a deep copy

DevX - Software Development Resource

Convert Java Class Files To Windows Executables

The Microsoft Java SDK (http://www.microsoft.com/java) has a tool called jexegen which converts a Java class file into a fully executable Microsoft Win32 application. Related Posts How to Check if Index

DevX - Software Development Resource

The Fraction Gotcha In Java

In Java The expression x/y (x and y are both integers) will represent an integer operation that would result in an integer. So, the result of 4/5 would be 0.

DevX - Software Development Resource

Discover the IP Address of Your Local Machine

The class java.net.InetAddress represents an Internet Protocol (IP) address. It has a static method, getLocalHost(), that you can use to obtain an instance of java.net.InetAddress based on your local machine’s

DevX - Software Development Resource

Display Data from a Database in Your ASP Page

nce you go beyond the basics in ASP?scripting some fancy output?the next thing you usually want to do is access a database and display data from it. This ASP primer

DevX - Software Development Resource

DHTML Collapsing Treeview

y now, I’m sure that you have some Web development experience, either with VB DHTML applications, or HTML pages using VBScript. If not, then you will soon, so pay attention.