The Latest

DevX - Software Development Resource

Parsing a comma-delimited text file

Question: Is there an easy way to load a datastore with a comma-delimited text file? Answer: Yes, just load the file into memory and do a global search and replace

DevX - Software Development Resource

Querying NT

Question: Is there a way to query NT 4.0 (programmatically or manually) to have it tell me whether it is NT workstation or NT server? Is the answer in the

DevX - Software Development Resource

Exporting dw to Excel using OLE using PB5

Question: I’m trying to export a report to Excel with OLE automation. I’m using PB 5.0.2 and Excel 97. I’ve seen countless examples on how to do this (in fact,

DevX - Software Development Resource

Adding DOS exe

Question: How do I add a DOS exe such as ping to a VB program? Answer: If starting another program is what you want, then use the Shell function. The

DevX - Software Development Resource

GetWindowsDirectory API 16 bit to 32 bit

Question: I have migrated an application from 5.0.03 to 6.5 and continue to get this error when pressing the Run button: Error – 14 – Error opening DLL library kernel.exe

DevX - Software Development Resource

Adding local groups to a NT Workstation

Question: I am trying to write an app that can add local groups to the NT security database on an NT workstation. When I use the netlocalgroupadd() function, I get

DevX - Software Development Resource

CopyFile API fails with AT command

Question: I have a program that copies a file from Network Drive W: to Local Hard Drive E: using the CopyFile API Function. From the command line, the program works

DevX - Software Development Resource

The Case for Class Variables

When each instance of a class needs access to a value that can vary from one run of the applet or application to the next, but will be constant within

DevX - Software Development Resource

Keep Visual InterDev 6 Out of Your DE Connection Strings

Users of Visual InterDev 6 have reported frustrating problems in configuring their data connections while using the Data Environment (DE). Even though you manually edit the Application variables and connection

DevX - Software Development Resource

Handling Checked Exceptions

There are three ways to deal with checked exceptions in Java. First, you can declare that the “callee” method throws them (using the “throws” keyword). You should do this when

DevX - Software Development Resource

Mouse click

Question: How do I make the mouse click in VB 4? It just auto clicks without user inputs in the spot the mouse currently is. Answer: Without having to go

DevX - Software Development Resource

ADODB.connection

Question: I use ADO with an Oracle database. To get the connection I have to use: dim Adodb as New ADODB.connectionwith Adodb .connectionString = ???? .openend with What do I

DevX - Software Development Resource

Text in VB5

Question: I’m a beginner to Visual Basic, and I would like to display in a text box several lines of text. However, when I enter the code under the command

DevX - Software Development Resource

Disable Textboxes and Combo boxes

Question: When a textbox or combo box is disabled, the black text within these control becomes grey. I would like to have all the features of disabling these controls, but

DevX - Software Development Resource

Use External JavaScript Files

If you have the same JavaScript program appearing on several different Web pages, you might want to consider using an external file. That way all the pages can refer to

DevX - Software Development Resource

Creating Files Using FileOutputStream

You accomplish basic file I/O in Java using data streams. The most basic file I/O operations in Java use the functionality offered by these classes: FileInputStreamFileOutputStream If you’re new to

DevX - Software Development Resource

The Underlying Representation of NULL

C and C++ define NULL differently: #define NULL 0; // A typical definition of NULL in C++ #define NULL ((void*)0) // C defines NULL this way Why is it defined

DevX - Software Development Resource

Creating an HTML Directory in ASP

Although most Web servers give you the option of allowing users to view the list of files in a Web site directory, you may not want to show some types

DevX - Software Development Resource

Nested Namespaces Reduce Name Clashes

Nested namespaces are useful in large-scale projects, whereby every development team gets a dedicated namespace within the project’s namespace. Nested namespaces reduce the likelihood of name clashes among different teams

DevX - Software Development Resource

Quick and Dirty Tickmarks

The JSlider component can be customized so that its labels, track, and tickmarks (or any combination of the three) are hidden. Unfortunately, there’s no way to turn off the slider

DevX - Software Development Resource

Hide Unnecessary Navigation Buttons Using DHTML

Hide your navigation buttons using DHTML when you don’t need them. Imagine a page with a databound table on it showing ten rows of data. When you’re at the beginning

DevX - Software Development Resource

Using the Visual Basic Snapshot Data Object

The Visual Basic Snapshot data object is closely related to the Dynaset data object, but differs in several key respects. Snapshots are stored entirely in RAM on the user’s local

DevX - Software Development Resource

Using SQL Aggregate Functions Is Efficient

All SQL-compliant systems, including Microsoft JET SQL, have a set of functions to return computed results of numeric data stored in a column. All the aggregate functions create effects that

DevX - Software Development Resource

Displaying a List of Checkboxes

All of the aggregate components in Swing–that is, components made up other components, such as JTable, JTree, or JComboBox–can be highly customized. For example, a JTable component normally displays a

DevX - Software Development Resource

Listing All Environment Variables

Environment variables are useful for gathering data about a client’s system settings, but different servers have different environment variables available to them. To find out what environment variables are available

DevX - Software Development Resource

Deploying Your Web Application to Another Server

Question: I developed a Web site with a database on my machine using Internet Information Server (IIS), Active Server Pages (ASP), and SQL Server. I want to install the site,