The Latest

DevX

Applying too Much Style can Hurt Readability

Cascading Style Sheets (CSS) provide a good way to apply a style sheet to a section of text. With CSS, you can redefine how HTML tags work, for example making

DevX

How to Generate a Sequence of Random Numbers

Standard C provides two functions for the purpose of random number generation–rand and srand. The function rand generates a sequence of pseudo-random numbers. The term pseudo-random implies that the generated

DevX

Adjust Combo Box Drop-down Width

Due to limited space on a form, you sometimes must keep the width of combo boxes small. Because a combo box lacks a horizontal scrollbar, some text might remain hidden.

DevX

Ragged Arrays

Who said arrays in VB can’t change all dimensions while preserving data? I call this the “variable dimensions array,” and I use it when applications need data arrays with more

DevX

Third-Party Spell Checker

Question: I’m looking for a third-party library that does spell check and has some grammar rules. Answer: You have two solutions to this problem. One: you can purchase a third-party

DevX

Import Objects in Power Builder 5.0

Question: How can I import objects in code? I need to import to a library objects such as userobject and window, and not only datawindow. I use the function libraryexport

DevX

PBD to PBL Conversion

Question: Are there any tools that can generate back from PBD to PBL? Answer: There are no tools that I know of to reverse-engineer a PBD to a PBL. In

DevX

Response window looses focus in DW

Question: I have a datawindow with a couple of fields where users can double-click to see a code table. The code table window is a response window. The problem is

DevX

Primary Key Identity

Question: I have installed Service Pack 4 for SQL Server and Service Pack 4 for NT. I still receive this same error. Your Q&A suggests that this problem was fixed

DevX

NT Date Format

Question: I am trying to develop a VB program to interface with a database from a third-party imaging product. The database is SQL Server and the product stores dates as

DevX

Key combinations

Question: I’m developing an application for NT 4.0, and I don’t want that a fell key combinations works. So the question is, where can I disable functions such as Alt+Tab

DevX

DLLs on NT

Question: I’ve written an application that uses external DLLs. It works fine on Win95. When I try to load it on NT, it says it can’t find any of the

DevX

Returning strings from functions

Question: I would like to write a function that receivesan integer and converts this into a string representing the integers value in binary. At the moment I am struggling to

DevX

Array of pointers.

Question: I need to pass an array of pointers to a class to a function. The function is: void myFunc(myClass *example[]); The problem is that I need to define the

DevX

Creating a Guaranteed Unique Filename

Question: How can a unique filename be constructed that guarantees that it will be unique across processes? Answer: There is unfortunately no Java 1.1 analog to the POSIX tmpnam() C

DevX

Size of C++ executable

Question: Does one need a runtime DLL for an .exe file written with MFC in Visual C++? Can one make a standalone .exe program with C++ that is small and

DevX

Programming Languages

Question: My company, a strictly a VC++ development group, is considering developing a large real-time database/imaging application in both VB and VC++. What are the pros/cons of doing this, and

DevX

A pause function

Question: I cannot figure out a pause function for C++. Our books are very generic…can you please help? Answer: To pause for a given amount of time, you will need

DevX

fflush()

Question: I am having difficulty finding information and examples on how to use the flush function. Answer: If you are not sure how to use this function, then you probably

DevX

Extracting bits.

Question: How do I extract the value from a certain number of bits of an unsigned type? ex: date is stored as unsigned date = 0x26cf; bits meaning 0-4 Day

DevX

Applet Filename Change Problem

Question: I have a Java applet I got off the Internet that I want to use on my server. I have tested it on mycomputer and it works fine, but

DevX

Reflection – Constructors and array params

Question: I need to call a constructor of a dynamically loaded class, and thatconstructor takes a single parameter which is an array of strings,(i.e., constructor(String [] args). How can I

DevX

Simulating Keystrokes

Question: I am building an add-on application in Visual C++ 6.0. How can you send a key combination (such as Control+K) to another application to invoke a menu shortcut (for

DevX

Intercept File Operations

Question: I am trying to write a utility program. I need a way to intercept all file open/save operations and get the info about the name of the file so

DevX

How do I make a shortcut in Windows 95/98

Question: I would like to create a shortcut on the desktop. How do I do that without copying a file to the windowsdesktop directory? Answer: The basic approach is to

DevX

Frame Content to Image Object

Question: In my application, I want to convert the content of a component into a GIF image. I know how to convert an Image object to a GIF, but I

DevX

Sorting Strings in an Array

Question: I have a list of filenames in a String array. I’d like to sort them into alphabetical order. Is there a class to do this, or must I implement

DevX

Delaying a Program

Question: Can you please tell me how to delay the program flow in Java? I can’t find any implementation of delay(). Answer: To introduce a delay into your program, use