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

Inhibit Derivation from a C++ Class

If no other classes can derive from a class, then you know that all the pointers to that class point to objects of a uniform size. This can simplify memory

Switch Statements in Object Oriented Design

There is nothing intrinsically evil about ‘switch’ statements. However, they do sometimes result from improper Object Oriented design. There are twodesign principles to keep in mind.1. Open/Closed Principle: this states

Print the Length of the String Without Using strlen()

The following code reads one string, and prints the length of that without using strlen(): #include #include int main(){ char s[20]; gets(s); printf(” %d “,printf(“%s”,s));/*return type of printf() is int.

Pull a Date From SQL Server DateTime

SQL Server stores datetime data in 8 bytes. The first four bytes represent the date and the second four represent the time. To axe off the time part of the

Add a Tooltip for the MFC Dialog

This method works for the MFC derived class and was tested on a Dialog-based class. Set Active Project Select Project –>Add to Project –>Components and Controls –> VC++ Components –>

Adding C++ Specific Code into IDL Files

When you write an IDL file and need to add specific C++ code in the header file created after MIDL compilation, you can use the the cpp_quote(” “) IDL construct.

Avoid Nesting Errors

There are two very annoying–yet completely avoidable–nesting errors that occur in C/C++ programming.1) This one typically happens toward the end of the day, thereby making the day longer: for (int

Create a unique GUID

The System.Guid type exposes several shared and instance methods that can help you work with GUIDs, that is, those 128-bit numbers that serve to uniquely identify elements and that are

More of the Good Stuff

or many of you, this is crunch time. Whether you’re excited, mildly interested, or begrudgingly accepting, most Microsoft developers know that .NET is in their future. So, chances are, you’ve

Display the ListBox of a Combobox Automatically

To display the List Box of a Combobox automatically, without clicking it, you can use the SENDKEYS (“Key”,[Wait]) function. First, create a VB standard exe project. Then add a combo

Create a Developer’s Extract of a Production Database

aving a development environment provides excellent software change management because it ensures secure, isolated testing and production environments. However, for many IT shops, maintaining three environments is too much overhead.

Dashed lines with custom caps

You can set properties of the Pen object to create custom lines. For example, you can use the DashStyle enumerated property to draw dashed lines using a predefined pattern, and

Building arrays on the fly

VB.NET supports the creation of arrays on-the-fly, by using the New operator. For example, look at the following code, that uses GDI methods to display few connected lines ‘ Get

Create a gradient background

a gradient brush is a brush that contains all the color nuances that vary from a starting color to an ending color, like the typical background screen of many installation

Drawing B

GDI+ supports two different forms of a complex curve that can’t be represented as an arc of a circle or an ellipse: a cardinal spline and a B

Drawing Cardinal splines

GDI+ supports two different forms of a complex curve that can’t be represented as an arc of a circle or an ellipse: a cardinal spline and a B

The High Price of Process

ot so many years ago, when you went to buy a new car, among the many decisions you’d have to make about your “options” was whether or not you wanted

Take Advantage of SQLXML with ASP.NET

QLXML is a set of supplemental tools that extend SQL Server’s existing support for retrieving and storing XML data. With SQLXML 3.0, you are now able to use SQL Server

The MapPath method

The ASP.NET Page object exposes the MapPath method, which converts a virtual path into a physical path, so it’ is useful for passing arguments to objects that don’t work with

List all COM components on local machine

The following routine parses the registry and lists all the installed COM components: ‘ this code assumes that you have used this Imports statement’ Imports Microsoft.Win32′ Print ProgID, CLSID, and

Check whether Microsoft Word is installed

The .NET frameworks provides a set of classes that let you work with the Registry, so it is quite easy to create routine that looks for specific keys to determine

List all running Windows processes

The System.Diagnostics.Process class exposes the GetProcesses static method, that returns a list of all running processes. It is quite easy to leverage this feature to display all running processes in

Launch another process in a specified directory

The System.Diagnostics.Process class provides several methods to launch and controls other Windows processes. For example, the following code sample shows how to run Notepad, pass arguments to it, and run

Gaining Control of the .NET ListBox

lassic VB ListBoxes held a simple array of strings used for the list, and a parallel ItemData array that held a list of Long numeric values. Using the two in

How to Add Tooltips Using JavaScript

By utilizing the CLASS attribute, you can assign the same set of style definitions to each tooltip. The basic syntax of the tooltip is as follows: Text to be displayedWhere