
Delphi SQL Parameters
Question: Is it possible to use a parameter on the left side of an equality in a WHERE clause? For example: SELECT * FROM TblName WHERE:parm1 = :parm2 When I

Question: Is it possible to use a parameter on the left side of an equality in a WHERE clause? For example: SELECT * FROM TblName WHERE:parm1 = :parm2 When I

Question: How can I expose the ItemData property of a ListBox to use it for storing longint data that corresponds to each item in the list in Delphi 3.0? I

Question: How can I get a list of currently running applications and, more importantly, handles to their windows? Answer: For that you have to use the Windows API call, EnumWindows.

The Standard Library supplies the class template auto_ptr which automatically deallocates heap memory. Likewise, local objects are reclaimed in case of exiting their scope or during “stack unwinding” caused by

It is not uncommon for C++ code fragments to be called by non-C++ programs such as a C-based communication software, COBOL based TP monitors and the likes. However, global functions

Operator new throws an exception of type std::bad_alloc when it fails to allocate the requested amount of memory. Yet in some circumstances, or due to performance considerations, throwing an exception

A class can declare external functions or other classes as friends. Friendship grants full access to all of the grantor’s members, even private and protected ones: void encrypt (string &

Question: How do I display a quote through scripts? For example, I want to print the quotes in a line but JavaScript reads the quotes as part of the coding.

Question: How can I change the color of a URL link when the mouse passes over the link? I am using Netscape version 3.0. Answer: Unfortunately, you need to have

Question: How do I make my date and time JavaScript Y2K compliant? Thank you. Answer: To the best of my knowledge, JavaScript, the language, is already Year 2000 compliant. Internally

Question: I need a script that will allow users to search their hard drive for a file that they can send me. If you can help, I’d appreciate it! Thanks.

Question: Is there a product to convert Microsoft Access 2.0 applications to Visual Basic 5.0 applications? Answer: Unfortunately, Access forms are significantly different than Visual Basic forms (in any version,

Question: I have recently bought a scanner and now have the capability to put pictures on my computer. How do I save pictures in JPEG format instead of bmp format.

Unsigned integers are sometimes unavoidable, like when dealing with raw binary data. A good example is a mail server reading an incoming binary stream. But more often than not, the

Standard C++ supports templates’ template arguments. For instance, a mail server class can store incoming messages in a vector of vector(s) of bytes: vector< vector > vmessages; Please note that

Traditionally, structs serve as data aggregates. However, in C++ a struct can have constructor(s), destructor and member functions just like a class. The only difference between the two is the

A derived class may hide a member function declared in its base class by using the same function name, but with a different signature, or list of arguments. Usually, this

When designing a class, you should remember that one day it may serve as a base class for other classes. When deriving a class from a base, the base’s destructor

Question: Is there a method that will prevent a user from going back to the previous page without modifying the browser code? (Does it matter if it is a CGI

Question: When attempting to instantiate an object contained in an ActiveX EXE the following message is received. “Only InProc Server components should be used. If you want to use the

Question: We have trademark symbols sprinkled in our HTML Although MSIE 4.0 has no trouble with it, some browsers cannot interpret [ampersand]trade”. We try to replace them with the ASCII

Question: I am writing a server written in Java that needs to take input from a game written in Visual Basic and sends the output to clients on the Internet.

Question: Am implementing a network simulation program thatrequires a sender and receiver thread, with a frame object being passed between the two threads.Could you suggest a way of connecting the

Question: I am conducting a study of operating system capabilities to support desktop videoconferencing.Would Java be a good Operating System for this purpose? Answer: Java itself is not an operating

Question: How do you change UNIX file permissions in Java? I’ve seen it done and I need to replicate it. Answer: There is no platform-independent way of changingfile permissions in

Question: After: StringTokenizer st = new StringTokenizer(line); Do I have to write: String key = new String(st.nextToken()); or is it enough to write: String key = st.nextToken(); Answer: It is

Question: How do I access environment variables? Answer: There is an undocumented method in java.lang.System with the signature: public static String getenv(String) You can use this method to fetch the

Question: Any suggestions on a good way to implement templates in java? Answer: The normal way to implement template behaviorin Java is to create an interface defining thecommon behavior that

Question: I’m having problems with application clipboard usage for “non strings”. If I try to create my own dataflavor it still seems to think the clipboard is a string. Answer:

Question: I am curious if Java can be compiled as Windows 95 executable program? Answer: Yes, various Java compilers now support the optionto compile Java directly to native code. Visual