The Latest

DevX

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

DevX

SetMenuBitmap – Add a bitmap to a menu item

Private Declare Function GetMenu Lib “user32” (ByVal hWnd As Long) As LongPrivate Declare Function GetSubMenu Lib “user32” (ByVal hMenu As Long, _ ByVal nPos As Long) As LongPrivate Declare Function

DevX

IsFormModal – Determines whether a form is modal

Private Declare Function GetWindowLong Lib “user32” Alias “GetWindowLongA” _ (ByVal hWnd As Long, ByVal nIndex As Long) As LongConst GWL_STYLE = (-16)Const WS_DISABLED = &H8000000′ Return True if the form

DevX

Use a ListBox as a poor man’s grid

You can easily create columns of data in a ListBox control by setting its tab stop at appropriate positions. This way, you can use a ListBox control as a sort

DevX

Quickly find which OptionButton is selected

Often OptionButton controls are arranged in control arrays. To quickly find the index of the only selected OptionButton control you can use the following code: ‘ assumes that the control