The Latest

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

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,

DevX - Software Development Resource

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,

DevX - Software Development Resource

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

DevX - Software Development Resource

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

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

Storing Character Large Objects in an Oracle Table

Even the latest versions of Oracle Related Posts The Best Bluetooth Keyboards for Your Mac in 2023Apply String IndentationRun Your Backbone.js Apps Seamlessly in Client and Server with RendrCrypto ATMs

DevX - Software Development Resource

Use SET When Referencing Values in an ADO RecordSet

When referencing recordset values in your ASP code, don’t use the commonly used Related Posts Do Not Assume SimpleDateFormat Is Thread-safeEnterprises Say Mobile Development Achieves Positive ROIRural California ranch trains

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