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

Use VB System Color Constants in API Calls

Visual Basic includes constants, such as vbActiveTitleBar and vbButtonFace, for Windows system colors, which the user might change through the Control Panel. (In VB3, these constants are defined in the

DevX - Software Development Resource

Change Tooltips Background Color

To change the ToolTips background color, open the Control Panel’s Display tool. Click on the Appearance tab. In the Item combo box, select ToolTip. Click on the little color box

DevX - Software Development Resource

The Scope of A Local Loop Counter

C++ allows you to declare variables wherever you need them, thus enabling immediate initializations. A good example is a loop counter. It can (and should) be declared inside a for-statement:

DevX - Software Development Resource

Trivial Constructors

Conceptually, compilers synthesize a default constructor for every class or struct, unless a constructor was already defined by the user. However, in certain conditions (a simple data struct, for example),

DevX - Software Development Resource

Mailto Subject Changes

It’s possible to create mailto links that include a subject line in addition to just the recipient’s e-mail address, however, not all e-mail programs support this functionality. That said, to

DevX - Software Development Resource

Garbage Collector in C++?

A garbage collector is handy, since it eliminates a big source for bugs, runtime crashes and memory leaks. However, garbage collection is not for free; it incurs additional runtime overhead

DevX - Software Development Resource

Three Flavors of Polymorphism

Polymorphism is the ability of different objects to react in an individual manner to the same message. This notion was imported from natural languages. For example, the verb “to close”

DevX - Software Development Resource

Rename a Login

Question: Is it possible to rename a login? Answer: Sorry, no. You must drop the login and then create a new one with the corrected name.

DevX - Software Development Resource

Log truncation

Question: My database and log keep filling up and I can’t truncate the log. Any suggestions? Answer: There are two methods to empty the transaction log. One can regularly dump

DevX - Software Development Resource

The Rationale Behind Namespaces

Some users consider the addition of namespaces to C++ as superfluous or even harmful. In order to understand why namespaces were added to the language, imagine that the file system

DevX - Software Development Resource

Provide Print Preview

You can provide Print Preview at different scales. First, make your printing routine take on the object it should draw as a parameter. Then, for printing, pass the routine the

DevX - Software Development Resource

Sort Data in the Short Date Format

Suppose you have a database field that returns a date in the Short Date format. Neither a numeric sort nor a string sort would order this column correctly. To sort

DevX - Software Development Resource

Progress Bars With A Gradient

The tip “Color Status Indicator” [“101 Tech Tips for VB Developers,” Supplement to the February 1997 issue of VBPJ, page 26] got me thinking that it would look even more

DevX - Software Development Resource

Compress Short Strings Into a Long Value

When developing relational database applications, you often need to use list boxes or combo boxes to store records with alphanumeric keys. You can load numeric keys into the ItemData array

DevX - Software Development Resource

Add User Properties to Controls

To add user-defined properties to controls, use this code to store them in the control’s tag. You can define multiple additional properties at design or run time. You can easily

DevX - Software Development Resource

Placement-New Requires Heap-Allocated Buffers

The placement-new operator constructs an object on a pre-allocated buffer. The pre-allocated buffer has to be allocated on the heap. char *pbuff = new char[1024]; // heap allocation using plain

DevX - Software Development Resource

Generic Programming: One Step Beyond OOP

The Standard Template Library (STL) is a collection of generic algorithms and containers. It provides a new approach in software development, namely, generic programming. How does generic programming differ from

DevX - Software Development Resource

Fully Qualified Names

A unique name of an identifier consists of its namespaces(s), each followed by scope resolution operator, then its class name, and finally the variable itself. Since both namespaces and classes

DevX - Software Development Resource

Add the "?" Button to a Form

The WhatsThisButton property returns or sets a value that determines whether the WhatsThisButton appears in the title bar of a Form object during run time. For the WhatsThisButton to appear

DevX - Software Development Resource

Show 3-D Text Messages

If you want to print text on an object with 3-D effects, use this subroutine to convert fonts into 3-D fonts with borders. In this routine, the user can define

DevX - Software Development Resource

Switch to Another App and Close It

Use the built-in AppActivate command to switch to another application easily if you know its title. You can even close the application programmatically: ‘This will close appPrivate Sub CloseApp (AppTitle

DevX - Software Development Resource

Add Right-Click Functionality

By default, the right-click functionality needed for What’s This? Help is not available in VB. Selecting a menu command from a context menu created for the button lets you display

DevX - Software Development Resource

Netscape Authentication failure with IIS 4.0

Question: Hi, we have a secure server that has anonymous Web Access removed from the relevant directories. This works fine with Internet Explorer, but with Netscape it fails completely. Whatever

DevX - Software Development Resource

Returning data in different file type

Question: We have an ASP application that queries a database and returns the data to formatted pages. The user would also like the data returned in a .CSV format for