The Latest

DevX - Software Development Resource

ADODB.Recordset Type “Not Defined”

Question: I copied the following code from a good book on e-commerce, but the VB code (Visual Studio 6.0 Enterprise) gets an error on the Dim rsBankData line “User-defined type

DevX - Software Development Resource

Printing a Barcode (GIF) From Netscape 4.05+

Question: I have a barcode saved as a GIF that is truncated each time it is printed from Netscape. It prints fine in Internet Explorer and Netscape 4.04 but does

DevX - Software Development Resource

Visual C++ DLLs Need a DEF File for VB Clients

The VB community is still waiting for somekind of tool to create “real” DLL with Visual Basic.Awaiting for this to arrive with VB x.0 (x Writing DLLs with C/C++The message

DevX - Software Development Resource

NZ – Check whether a value is Null

‘ Check if a value is Null. If not it returns the value, ‘ otherwise it returns the ValIfNull argument, or zero/null string’ if the second argument is omitted” This

DevX - Software Development Resource

Reuse a Recordset’s Connection

ADO lets you create a Recordset without creating an explicit Connection object, using the following syntax: Dim rs As New ADODB.Recordsetrs.Open “Authors”, “DSN=Pubs” If you later want to create another

DevX - Software Development Resource

Export DAO databases to any ISAM format

Everyone tells you how to import, but even MS-VB techs start coughing when you ask how to export with DAO! In fact, their own documentation clearly states that it can

DevX - Software Development Resource

Draw a Simple Bar Chart in HTML

There are a lot of graphics packages for Web pages on the market, but sometimes you still want a homegrown solution. Using just HTML, it is possible to create simple

DevX - Software Development Resource

Use Static Allocation for Fixed Size Memory Buffers

Imagine you have to write a simple stock quote application that accepts stock symbols and retrieves their current values. Using a std::string object to represent a stock symbol is inefficient

DevX - Software Development Resource

Understanding File Descriptors

When a program opens a file, the operating system returns a corresponding file descriptor that the program refers to in order to process the file. A file descriptor is a

DevX - Software Development Resource

Forward-Declaring I/O Classes and Templates

The standard header contains forward-declarations of the I/O classes and templates. This header is sufficient to refer to any of the I/O classes and templates but not to apply operation

DevX - Software Development Resource

Overloading the Function Call Operator

Overloading the function call operator can be somewhat confusing because the overloaded operator has two pairs of parentheses. It may not be immediately obvious which of these pairs declares the

DevX - Software Development Resource

A Shorthand for “Constructor” and “Destructor”

The abbreviated forms “ctor” and “dtor” (“c-tor” and “d-tor”) are widely used in C++ literature, newsgroups, magazines, and in the ANSI/ISO Standard. These terms are simply the shorter forms of

DevX - Software Development Resource

Q&D Zoom Using Forms 2.0 Designer

How would you like to be able to make a form automatically resize and reposition all its controls and fonts whenever you resize the form? How would you like to

DevX - Software Development Resource

Special Effects with Forms 2.0 Designer

Forms 2.0 Designer provides a variety of special visual effects. Your forms can have flat, raised, sunken, etched, or bumpy background textures. You can also have the background picture tile,

DevX - Software Development Resource

Roll-Your-Own Decimal Entry Filter

Here’s an easy method for making sure your users enter only numeric data, and only one decimal point. First, place two Public procedures in a standard module. You can use

DevX - Software Development Resource

Scrollbars and 3-D Effects on Non-MDI Forms

Standard VB forms don’t support a scrollable client area. Normally, when one is needed, programmers resort to convoluted solutions such as filling the client area with a picture box, placing

DevX - Software Development Resource

hWnd Attribute

Question: I have to make a programm to read DATA from a Card, the first function that I must call says: Function_name(hcaller As Long,…) This hcaller is an hWnd and

DevX - Software Development Resource

ADO Disconnected Recordsets

Question: I am designing a three tier architecture framework. For passing data from one tier to another, I am using ADO disconnected recordsets. For Reading, Updation and Deletion, I create

DevX - Software Development Resource

VB and Oracle: Use ADO or ODBC?

Question: What’s the consensus as to whether it is better to use the ADO native driver, or use the ADO ODBC wrapper with Oracle? Answer: Microsoft now provides a native

DevX - Software Development Resource

Loading Database Name at Runtime

Question: I have used several ADO data controls as well as one data environment designer in my app. This appears to “hardcode” the path to my database forcing me to

DevX - Software Development Resource

Building SQL Strings Dynamically

Question: What is the correct format to create a SQL string using embedded variables? I keep getting a message that says I have an “incomplete query clause”. I am trying

DevX - Software Development Resource

VB6 Text Box

Question: How do I get the TextBox to display automatically at the end of text instead of at the begining of the text? Answer: Set the SelStart property of the

DevX - Software Development Resource

DateAdd Function Parameters

Question: While using the dateadd() function to add the given number to an existing year, it adds the days instead of years if we use the command in the following