devxlogo

Tip Bank

Avoid name conflict by using namespaces

In large-scale software projects, short and elegant names for types and functions are problematic because they can cause a name conflict, i.e., the same name is used more than once

A Button Constructor for Java 1.1

With JDK 1.1, you can define an action command String for a Button that is independent of the text displayed in the Button. At the least, this enables you to

Control in what Container?

Question: Is there a way to find out if a control that I am writing in VB5 is inside a container such as a picture box and then find out

Enumerating Function Parameters

Question: I’m writing on an OCX Control with VB5. I have a lot of functions in it and I dont want to scare the end user with a lot of

Compilers for Windows CE

Question: I’m developing a project that will use H/PCs. But which compilers are available for Windows CE? Answer: Currently, Microsoft is the only vendor offering a compiler for Windows CE.

Double quotes in queries

Question: OK, suppose you need to include in a query a string which contains both single and double quotes, for example:UPDATE Books SET Title = “Gulliver’s Travels”I need to save

Free System Resources

Question: Is there an API call to find the amount of free system resources in Windows 95? Answer: Good news and bad news, here. Yes, there is. But, no, you

Toggling Edit Control Word Wrap

Question: I have an OWL application in C++. I need to be able to switch in run-time between wordwrap and no-wordwrap text in the Editor window. How can I do