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

Using const Variables to Define the Size of an Array

C++ requires that the size of an array be a constant integral expression. However, the following code refuses to compile: // in const.hextern const int ID_LENGTH; // declaration// in const.cppconst

Controlling Floating Point Precision

You can override the default number of digits after the decimal point by calling the precision() member function of an ostream object. The following program first displays six digits after

std::vector Iterators

To create an iterator of a vector, you have to use a vector specialization. In the following examples, I create two vector iterators: one for the specialization vector and another

Octal and Hexadecimal Output

By default, cout displays integral values as decimal numbers. You can override this setting and have integral values displayed in hexadecimal and octal notations by using the ‘hex’ and ‘oct’

Casting To and From void*

In C++, pointers are strongly-typed. Therefore, you can’t assign a void pointer to any other pointer type without casting it explicitly: int n;void *p = &n;int *pi=static_cast< int* >(p);//C++ requires

Null Pointers and Delete

C++ guarantees that operator delete checks its argument for null-ness. If the argument is 0, the delete expression has no effect. In other words, deleting a null pointer is a

Switching Between Fixed and Scientific Notation

By default, iostream objects are set to display floating point values in fixed notation. To change this, you apply the ‘scientific’ manipulator to an output stream object: #include using namespace

Simplifying Date Data Entry, Part III

f you have been following this series of articles, you know the problems with date data entry and the proposed a pop-up calendar solution that allows a user to pick

Profiling in Oracle 8i

n a previous 10-Minute Solution, “New PL/SQL Features in Oracle 8i: Part I,” I write that Oracle PL/SQL programmers develop complex code nowadays, utilizing custom and Oracle-supplied packages. It therefore

Creating a “Complete” Backup Solution

ne of the inherent difficulties in backup and contingency planning is that it usually takes only one thing to go wrong to bring down your entire system. To be truly

XML Reference

agging an XML document is, in many ways, similar to tagging an HTML document. Here are some of the most important guidelines to follow.Rule #1: Remember the XML declarationThis declaration

Clear a MaskEditBox control without raising error

You can’t clear the contents of a MaskEdBox control by setting the Text property to a null string if the MaskEdBox’s Mask property contains delimiter. In fact, you must include

Hide and show the mouse cursor

At times you may want to temporarily hide the mouse cursor, for example in order to reduce flickering. To do so you just need the ShowCursor API function: Private Declare

Avoid beeps on forms without a default button

If a form contains one CommandButton control whose Default property is set to True, the Enter key activates the CommandButton. If the form doesn’t contain any default CommandButton control, however,

Change a CheckBox or OptionButton style at runtime

Visual Basic doesn’t let you change the Style property of a CheckBox or an OptionButton control at runtime. However, you can easily do it by manipulating the control’s style bit,

Pass the hidden Global object to an ActiveX DLL

An ActiveX DLL doesn’t have direct access to the environment of the calling EXE. For example, the App and Printer objects in the DLL don’t correspond to the objects with

Outlook Quick Link

This utility if for those who hate having to alt-tab over to Outlook every time I wanted to create a new message. With this program, no matter what application is

CComplexNumber – A class for dealing with complex numbers

Option Explicit’——————————————‘ A class for dealing with complex numbers’——————————————‘ The main propertiesPublic Real As DoublePublic Imaginary As Double’ Initialize this complex number’ (returns Me)Function Init(Real As Double, Imaginary As Double)

Insert a picture into a RichTextBox control

Here’s a simple method to programmatically insert an image into a RichTextBox control, by copying it into the clipboard and then pasting it into the control: Private Declare Function SendMessage

Determining an Absolute Row Index

Often properties and methods associated with grid controls don’t provide an absolute row index of current or selected rows (relative to the actual first row and not the first displayed