The Latest

DevX - Software Development Resource

Local SQL

Question: In Delphi 1 I am trying to emulate the “..” function for wild card search in Paradox in Local SQL. I am aware of ‘like’ but it is not

DevX - Software Development Resource

Using Output parameter with TQuery

Question: In a TQuery component, I use the SQL property to call up a stored procedure which is kept on a MSSQL server. The string used is ‘Execute [nameofproc] :param1,

DevX - Software Development Resource

API functions

Question: I want to ask you how can I run windows applications inside of Delphi applications (for example notepad.exe)? Answer: It’s actually even simpler than that… Look in the tips

DevX - Software Development Resource

Telling your program about modifications

Question: An ordinary Stringgrid with 5 columns and 7 rowsThe user wants to add 1 or 2 more rows. So farI know how to write the code! But where do

DevX - Software Development Resource

Converting strings to reals

Question: I am trying to read in a value of pi/4 from an editbox. Is there a built in command to convert it to a real from a string or

DevX - Software Development Resource

Copying a file for source to target in Delphi

Question: How to I copy a file from a source to a target in Delphi. I have been trying: SourceId := OpenFile(Source, FileStructure1, of_Read); if SourceID = -1 then ShowMessage(‘Unable

DevX - Software Development Resource

Beware of throwing exceptions from a destructor

The most plausible way to report a failure during object construction is by throwing an exception. However, this is not recommended for destructors. The problem is that a destructor may

DevX - Software Development Resource

When is virtual inheritance needed?

Multiple inheritance is a powerful and useful feature in C++, but it can lead to a problem known as the DDD or “Deadly Diamond of Derivation”, as in this case:

DevX - Software Development Resource

Strange linked list

Question: How can I create a linked list that contains different datatypes? For example: assume that I have Human as a basic class. Man and Woman are two children to

DevX - Software Development Resource

WinCE / Access97

Question: Can you design an Access97 application to run on a Windows CE machine? Has this been done? By whom? And finally, do you need to create a runtime version

DevX - Software Development Resource

find and replace values loaded in memory

Question: I am trying to write a program that will search memory for a hexadecimal string and replace it with the values hardcoded in my program. It’s a game cheat

DevX - Software Development Resource

Mainframe connectivity

Question: I am looking for a way to use VB to connect and retrieve information from a VAX mainframe. The computer has a windows 95 emulation terminal program, and I

DevX - Software Development Resource

CE2 accessibility options

Question: This might not be right on topic, but I’m hoping to receive an answer by e-mail. My daughter, eight, has cerebral palsy and can use only her left hand.

DevX - Software Development Resource

Advantages of WinCE

Question: What advantages does WinCE have over other handheld palmtop operating systems such as the Newton and others? Answer: Wow! Now that’s a leading question. Here’s the short version of

DevX - Software Development Resource

2GB+ files

Question: How do you determine the file size of files which are larger than 2GB? Also, how do you seek into a files larger than 2GB?Thank you Answer: You might

DevX - Software Development Resource

Printing Components

Question: How do I print out a component? Answer: Java 1.1 introduced the java.awt.PrintJob and java.awt.PrintGraphicsclasses. It also added the print(Graphics) and printAll(Graphics)methods to java.awt.Component, and the printComponents(Graphics) methodto java.awt.Container.

DevX - Software Development Resource

Java and NT Services

Question: How can I run a Java server application as an NT service? Answer: You can run a Java server appliation as an NT service if you use theMicrosoft SDK

DevX - Software Development Resource

Parsing a string into a date

Question: I’m writing a class that reads a log file containing timestamps.My StringTokenizer returns the timestamp as a String and I then haveto store it in a date container. Should

DevX - Software Development Resource

Completely hidden application

Question: Here is one that I couldn’t figure out for months!Will I be surprised if anyone can come up with a solution to this. How do you create a program

DevX - Software Development Resource

Java Product Version Confusion

Question: I’m reading a book on Java 1.1 that refers to various classesthat do not exist in Microsoft Visual J++ Professional Edition,Version 1.1, which apparently installs V1.02 libraries. How canI

DevX - Software Development Resource

Always on top window

Question: Is it possible to create an ‘always on top window’ in java? Answer: The short and perhaps not so sweet answer is “No.” At least not in 100%Java. You

DevX - Software Development Resource

Taskbar Icon for Dialog

Question: How can I set the icon image for a java.awt.Dialog like you can fora java.awt.Frame using setIconImage? Answer: Unfortunately you cannot do this. A Dialog inherits the icon of

DevX - Software Development Resource

Java File date

Question: Is there anyway with java to get a file’s date? Answer: Unfortunately, there seems to be no platform-independent way of doing this.The lastModified() method in java.io.File returns a system

DevX - Software Development Resource

Tool Tips

Question: How do I get a tool tip to appear in a java application? Answer: Tool tips were not a part of the AWT packages in the 1.0.2 and 1.1releases

DevX - Software Development Resource

Appending to existing files

Question: Is there a way to open a file for writing in append mode? Answer: The FileOutputStream and FileWriter classes both have constructors thatwith the following signature (String, boolean). The

DevX - Software Development Resource

Default button

Question: How can I implement a “default” button in a window? Answer: You can explicitly request the focus using requestFocus(), but thebutton can still lose the focus. Therefore you have