The Latest

DevX - Software Development Resource

Heap Issue

Question: I have a class A (from a DllA) inside a method that does a new on a class B defined in the DllB, uses it and deletes it. When

DevX - Software Development Resource

Exporting a Table Informix 7.25

Question: How do I export only one table, then import the same table back into Informix? Answer: Use the SQL UNLOAD command: UNLOAD to filename.unl select * from tablename When

DevX - Software Development Resource

Saving Form Data Within the Form Format

Question: I want users to be able to save a partially completed form, preferably to their hard disk with a user specified name, so that they can retrieve the file

DevX - Software Development Resource

Initialization of Built-In Types

Question: What does the declaration int i(0) ; mean? Does C++ have a type ‘int’ constructor? And why doesn’t Visual C++ accept a char* p(0) ; declaration? Answer: This expression

DevX - Software Development Resource

STL Set Performance

Question: How do I improve an integer set’s performance when it is used in multithreaded environment? Answer: Many factors affect a multithreaded application’s performance: the operating system, the duration of

DevX - Software Development Resource

The MB MsgBoxEx Control

This control is an extended and object-oriented version of the VB’s MsgBox function. You can center the message box on your form or place it everywhere you want, display any

DevX - Software Development Resource

Display the Connect To Printer dialog

Under Windows NT you can programmatically display the Connect To Printer dialog using one simple API function: ‘ This works only under Windows NT and 2000Private Declare Function ConnectToPrinterDlg Lib

DevX - Software Development Resource

Cannot Register ActiveX DLL Remotely

Question: I have downloaded an ActiveX DLL (A third Party ActiveX component) for uploading files to my server. The problem is I can not register the DLL in my Web

DevX - Software Development Resource

Simple Table Grids Without Images

When designing an internet application that must provide results in a grid, many developers will use small (1 pixel by 1 pixel) images in order to create a grid effect

DevX - Software Development Resource

Populate a Flexgrid With Desired Columns and Filtered Rows

Populate a flexgrid control with specified columns and filtered rows by drawing the control and calling this routine: Dim strWhere As StringstrWhere = ” WHERE PeopleAddressesID=4502″Call PopulateFlexGrid(Me.MSFGrid, “tblPeopleAddresses”, strWhere,”PeopleAddressesID”, “BuildingName”,

DevX - Software Development Resource

Connecting to SQL Server 7 via MS-DOS 6.2

Question: I have some complex engine control software that has to run under MS-DOS 6.2, but it needs to transfer data to SQL Server 7. What’s the best way to

DevX - Software Development Resource

Counting Across a Row

Question: I have a table that stores test answers. It looks something like this: Student Date_taken Q1 Q2 Q3 … Q78 If each question (Q%) is true/false (ENUM(”,’T’,’F’)), how do

DevX - Software Development Resource

DTS to Excel File

Question: I tried a DTS export of a table to an Excel file. The data types of all the columns in the table are varchar. When it exports to the

DevX - Software Development Resource

Filtering a Recordset

If you have a recordset already created and want to filter it by some criteria, you can use the Filter property of the recordset to do it. Just change the

DevX - Software Development Resource

Back-Referencing A Matched Element

You can use the dot operator (.) in XSL transformation stylesheets to refer to, effectively, “whatever element was just identified.” Let’s say you had this template in a stylesheet: Say

DevX - Software Development Resource

Stack Recordset Returns

If you’re getting a bunch of data for an ASP page, you can retrieve all the data through a single stored procedure and through a single call. Here’s what your

DevX - Software Development Resource

Move ASP Code to Compiled Components

Moving your ASP code to compiled components is always a good idea. Compiled components enable fast execution, along with easy development, debugging, and testing. For example, creating a record set

DevX - Software Development Resource

History Information

Question: Is it possible to display the address of the previous Web site as a string so that I can use it elsewhere? Answer: If the user got to your

DevX - Software Development Resource

Incorrect Rounding with Math.pow

Question: I have noticed that all rounding to x decimals scripts uses the following format: tenToPower = Math.pow(10, nDecimals);newNumber = String((Math.round(nNumber * tenToPower) / tenToPower)); However, that doesn’t work with