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

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)

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Be Careful How You Name SQL Server Stored Procedures

When creating stored procedures in a database other then the Master database, avoid using the ‘sp_’ prefix. System stored procedures are the only ones that should use the ‘sp_’ prefix.

DevX - Software Development Resource

Forward Declaration of Classes and Structs

You can use the keywords class and struct in forward declarations interchangeably. For example: class X; // fwd declaration uses ‘class’X *p;struct X // definition uses ‘struct'{};void f(){ p=new X;}

DevX - Software Development Resource

Overcoming Debuggers’ Limitations

Many symbolic debuggers limit the length of symbols they can display. For example, the Visual C++ debugger can display strings that contain up to 255 characters. Suppose you have a

DevX - Software Development Resource

Covariant Template Parameters

Suppose you need to define a function that takes a vector object and performs certain operations on it. The function has to be generic, that is, it should handle all

DevX - Software Development Resource

Portable Locks

Sometimes you need to make sure that only one instance of the same application can run at any given time. Although every platform defines different locking schemes, you can use

DevX - Software Development Resource

Function Object Bases

To simplify the process of writing custom function objects, the Standard Library provides two classes that serve as base classes of such objects: std::unary_function and std::binary_function. Both are declared in

DevX - Software Development Resource

The remove_if() algorithm

The remove_if() algorithms (defined in the standard header ) has the following prototype: template ForwardIterator remove (ForwardIterator first, ForwardIterator last, Predicate pred); The first two arguments mark the sequence’s beginning

DevX - Software Development Resource

The remove() Algorithm

The Standard Library defines the std::remove() algorithm, which moves desired elements to the front of a container and returns an iterator pointing to the end of the sequence of the

DevX - Software Development Resource

MB ProgressBar Control

This control is a great substitute for the ProgressBar included in the Common Windows Controls package and can give a nicer look to your applications. It has a BackColor property,

DevX - Software Development Resource

Add an horizontal scrollbar to a ListBox control

By default, VB ListBox controls don’t display an horizontal scrollbar, so if the items you add to the controls are wider than the control’s Width, the end user isn’t able

DevX - Software Development Resource

The fmod() Function

The modulus operator can only be applied to integral types. To compute the remainder of two floating point variables, you have to use the fmod() function instead. Fmod() is declared

DevX - Software Development Resource

The Procedures Sort Add-In

The Procedures Sort Add-In is a great add-in for those who like well-organized code. You can use it to sort your procedures in the active CodeWindow alphabetically. It preserve all

DevX - Software Development Resource

VB IDE and ObjectContext

A myth that is still being spread in various VB and MTS/COM+ related newsgroups, is that an application can not obtain a reference to the MTS or COM+ ObjectContext in