The Latest

DevX - Software Development Resource

Sharing Calendars Without Exchange

Question: How do I set up a shared calendar, or at least public access to other people’s private calendar, in a network that uses Outlook 2000 and Windows NT server

DevX - Software Development Resource

Embedded Apostrophe in a Query

Question: When I pass a string containing an embedded apostrophe in a query to SQL Server, it sees the apostrophe as an end-of-string marker. Example: “Select * from Members Where

DevX - Software Development Resource

Best Approach to Designing Three-Tier Systems

Question: I am aware of the recommended approach to developing three-tier systems?for example, presentation layer to business objects to data objects. Say I have a system that has a data

DevX - Software Development Resource

The API Spyer utility

This handy utility by Steve Weller lets you browse the properties of the window under the mouse cursor. You can use it to learn the window’s handle, caption, class name,

DevX - Software Development Resource

The MBSplitter ActiveX control

Another great and useful control by Marco Bellinaso. Place this control on a form to immediately achieve splitting capabilities. It works as a container control, and the controls you drop

DevX - Software Development Resource

Suppress Max and Min buttons in MDI forms

Unlike regular forms, forms don’t expose the MinButton and MaxButton properties and these buttons are always displayed. You can suppress these buttons using the following code: Private Declare Function SetWindowLong

DevX - Software Development Resource

Prevent an iconized window from being restored

When the user clicks on an iconized (minimized) form in the taskbar, Windows sends that form a WM_QUERYOPEN message, and inspects the value returned to the operating system. If this

DevX - Software Development Resource

Strange Behavior of the JPasswordField

The JPasswordField included in Swing exhibits a strange behavior?it moves the caret to the right as far as the width of the character you already typed. The problem is that

DevX - Software Development Resource

Return Date Parts With VBScript

Browsers Targeted: Internet Explorer 4+ You can retrieve any component of a date (either as a string, a hash-delimited date expression, or a date object) with the DatePart() function in

DevX - Software Development Resource

Works in IE But Not Netscape

Question: Why do certain things like tables and frames work fine with Internet Explorer but not with Netscape? Answer: There are many differences in the way the two major browsers

DevX - Software Development Resource

File Properties

Question: How can I retrieve a file’s properties? Either using an API call or a VB Control (i.e. version information)? Answer: To retrieve the file properties displayed on the property

DevX - Software Development Resource

VB and Web Development

Question: We have several applications developed in VB. What are the best alternatives for making these applications Web-enabled, and what are the advantages and problems associated with them. Answer: If

DevX - Software Development Resource

Simplify DHTML Scripting With SrcElement

Browsers Targeted: Internet Explorer 4+ The SrcElement DOM object is generated any time that an event is called, and it contains the element that called the event in the first

DevX - Software Development Resource

The Standard C++ Naming Convention

If you’re looking for a “house style” of naming convention, you can adopt the one used in Standard C++. It uses all lowercase letters for identifiers, and underscores as word

DevX - Software Development Resource

The snprintf() Function

The C99 standard defines a new version of the function sprintf(), namely snprintf(), with the following prototype: int snprintf(char * restrict s, size_t n, const char * restrict format, …);

DevX - Software Development Resource

The “Maximal Munch” Principle

Every compiler has a tokenizer, which is a component that parses a source file into distinct tokens (keywords, operators, identifiers etc.). One of the tokenizer’s rules is called “maximal munch”,

DevX - Software Development Resource

‘Restrict’ Pointers

One of the new features in the recently approved C standard C99, is the restrict pointer qualifier. This qualifier can be applied to a data pointer to indicate that, during

DevX - Software Development Resource

Managing the Processes on Your SQL Server

You can view a list of the processes currently running on your server by executing the sp_who system stored procedure. You can also view a list of active processes by

DevX - Software Development Resource

Passing a Date With the Query String

Question: Can I pass a date with the query string? Will the slashes cause a problem in this example? testing.asp?date=03/01/00 Answer: Yes they will. You will need to “encode” the

DevX - Software Development Resource

Create a Collapsible Tree in IE5 Using SrcElement

Browsers Targeted: Internet Explorer 5 Tree structures appear quite often over the ‘Net, and they are becoming especially prominent in the face of the emergence of XML. Fortunately, tree structures

DevX - Software Development Resource

Determine Your Heap Size

The following example program prints out both the total and free memory sizes, allocates a chunk of memory, and then prints the memory sizes again. If the initial size of