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

DevX - Software Development Resource

String arrays and pointers in C++

Question: I declared a string array, char *cities[15];, to hold the names of 15 cities. I want to allow the user to enter the 15 cities, but I do not

DevX - Software Development Resource

Casting CDECL_ to an int*

Question: Is there any way of casting the CDECL_ type to *int? Answer: No, because CDECL_ is not a type. It’s a calling convention. Calling conventions specify how arguments are

DevX - Software Development Resource

C++ (MFC)

Question: I am a student learning to do C++ programming with MFC. I have used InvalidateRect to update a particular area in a program. I thought invalidating reduced the flickering

DevX - Software Development Resource

OnMouseOver in Visual C++

Question: I have found many resources discussing the OnMouseOver event in JavaScript. I would like to know if this event is available in VC++ in any capacity, whether through an

DevX - Software Development Resource

General Protection Fault

Question: #include #include void main(){ randomize(); const int max_num=1000; int value[max_num]={0}; const num_word_per_line=8; cout

DevX - Software Development Resource

Running an Access Macro from ASP

Question: It’s possible to run an Access macro from ASP? Answer: Although you can run a macro from Access, it takes preparation, nerve and luck.Preparation, because you have to set

DevX - Software Development Resource

Emergency Exit

This is a trick you should never, ever apply, unless it is your lastchance to meet the deadline for the presentation which will save yourjob: #define private public #define protected

DevX - Software Development Resource

Printing a Report

Printing a simple report from Java is far from being as simple as you might expect. You use the Toolkit class to create a PrintJob, but the method requires a

DevX - Software Development Resource

Tabbing Between Components

With Java 1.1, the Tab key will cause the focus to step through those Components in a Container which can accept user input. Components such as Labels, which do not

DevX - Software Development Resource

References to Special Characters

It is easy to reference any Unicode character in Java source provided you know its four digit code. For example, the copyright symbol can be placed in a String as

DevX - Software Development Resource

Right-Clicks on a Single Button Mouse

Those of us with a two- or three-button mouse are familiar with the idea of a right-click, but how can you detect which button is pressed from your Java code?

DevX - Software Development Resource

Displaying a Help File from an Applet

With an Applet running under the control of an HTML browser, it’s natural to provide Help in the form of an HTML file too, or a set of them for

DevX - Software Development Resource

vector<> members must define < and == operators

The STL vector, as well as other standard containers, support comparison and sorting of their members by calling the corresponding standard functions found in the header file. These functions rely

DevX - Software Development Resource

Test templates thoroughly

To write a test routine for a template class or function,you have to choose one concrete type for every formal typeof the template and run all tests on this instantiationof

DevX - Software Development Resource

Win NT Domain Management from VB5

Question: Are simple domain management tasks such as “Add User to a Group” or “Add a Computer to an NT domain” possible under VB5? Do you have sample codes? Answer:

DevX - Software Development Resource

Desktop

Question: How can I get the current Desktop color? Answer: There are several ways to do this, but one way is to check the NT registry. HKEY_CURRENT_USER Control Panel Colors

DevX - Software Development Resource

Uninstallation

Question: I installed NT 4.0 over 95, and now what’s thebest way to uninstall only NT? Leaving 95 asit is. Answer: Yes, you can boot your computer with a Windows

DevX - Software Development Resource

Windows NT

Question: Is it possible to install Windows NT on the PC (without a network)? Answer: Yes, it is not only possible, but fully supported. In fact, in order to qualify

DevX - Software Development Resource

Be careful with EOF

The standard library of the C programming language offers a functiongetc to read a single character from a file or stdin: char c = getc(stdin); This function is useful if

DevX - Software Development Resource

No Pointer Arithmetics Outside Array Bounds!

Sometimes it is tempting to let a pointer point to a location that isslightly beyond an array’s index range. For example, consider the followingself-defined array class, which allows you to

DevX - Software Development Resource

Delphi Development for Windows CE

Question: Can I use Delphi to create apps, including DB apps, for Windows CE? Answer: I wish Borland Delphi could be used to develop Windows CE apps. However, the only

DevX - Software Development Resource

Building a Simple Database

Question: In my program, the user must log in. I must take that login and search a database to see if the login is valid and then match a password

DevX - Software Development Resource

Controlling the Menu Font

On some platforms, the default font used by Java for menu text is unfortunately not the user-selected, system-wide menu font. With some VMs it can be undesirably small. You can

DevX - Software Development Resource

Margins in Dialog Boxes

When laying out a dialog box with a manager that does not provide space between the components and the edges of the box (such as a GridLayout manager), the following

DevX - Software Development Resource

FTP Directory Listing

Question: How can I dynamically create a web page from an FTP directory listing of files with a particular extension? Answer: While there are sophisticated components (.DLLs) that you could

DevX - Software Development Resource

When dynamic_cast<> Fails

The dynamic_cast operator may convert an object to another related (derived or a base) object at run-time. When it fails to convert a pointer to the target pointer, it returns

DevX - Software Development Resource

A Mutable Object Member

When a data member is declared mutable, then it is legal to assign a value to it from a const member function. The following example may demonstrate when it is