The Latest

DevX - Software Development Resource

Swing, Pluggable Look & Feel

With Swing, you can easily change the Look & Feel (L&F) at run time to match one of the L&F implementations in your system. This program contains strings identifying three

DevX - Software Development Resource

Using Swing to Create a Rollover Effect

Using Swing you can easily make the image on a button change when you touch the button with the mouse and change again when you press the button. To run

DevX - Software Development Resource

Using Swing to Add Tool Tips

Using Swing, you can easily add tool tips to any of the components in your GUI. Tool tips aren’t normally visible, but they become visible when you point at the

DevX - Software Development Resource

Macintosh Platform?

Question: Is Delphi available for a Macintosh platform? Answer: At this time, there is no version of Delphi available for the Macintosh. Related Posts Import Excel Data into SQLSet ARITHIGNORE

DevX - Software Development Resource

Advantages of Declaring a Constant Object as Const

By declaring a variable that doesn’t change throughout program’s execution as const, you make your code safer and more readable. But there’s an additional advantage: efficiency. An optimizing compiler can

DevX - Software Development Resource

Inheritance Relationship of Templates

A common mistake is to assume that a vector is like a vector if Derived is a subclass of Base. However, there is no relationship between classes generated from the

DevX - Software Development Resource

Swing, Images on Buttons

Swing makes it easy to place an image on just about any component. To see an image on a button, substitute the path and file name of an image on

DevX - Software Development Resource

Before You Profile Your Software…

If you intend to optimize your software’s performance, make sure to profile the release version rather than the debug version. The debug version of the executable contains additional code (about

DevX - Software Development Resource

Inline Assembly

C++ is used in as diverse fields as high-level GUI through the lowest level real-time applications. In time-critical sections of C++ code, you can ensure enhanced responsiveness by combining inline

DevX - Software Development Resource

Swing, Buttons in Buttons

Tired of the same old buttons? My car radio has buttons in buttons, and you can do the same with Swing. Swing components are also containers which can contain other

DevX - Software Development Resource

How is Virtual Inheritance Implemented?

When multiple inheritance is used, it is sometimes necessary to use virtual inheritance. A good example for this is the standard iostream class hierarchy: //Note: this is a simplified description

DevX - Software Development Resource

Code-Commenting Shortcuts

Instead of going to the Edit menu to comment out a section of code, you can add the comment command to the shortcut menu you access by right-clicking in a

DevX - Software Development Resource

Is My Object Valid?

Have you ever needed to determine if an object variable is holding a valid reference? TypeName() returns a class name if the object holds a valid reference. It returns the

DevX - Software Development Resource

Run Your VB App on Startup

Do you have an application you need to launch on Windows startup? Typically, you do this by placing an item in the Startup directory. However, you can also do this

DevX - Software Development Resource

Help

Question: When we copy an image (in bmp format) in a help file, we get a “not enough memory space” error when we compile. What are the formats of images

DevX - Software Development Resource

NT and Windows 95/98 Network Integration

Question: At our school we have a Windows NT Server network (10O Base T and 10 Base T mix) for our students to use. We have a five-station peer-to-peer Windows

DevX - Software Development Resource

System-wide keyboard Hook

Question: I want to trap the special keys of Windows NT: Alt+Tab, Ctl+Alt+Del. In the first 10 minutes, I set a kbd hook and took a look at what were

DevX - Software Development Resource

DBA

Question: Other than specifying the “/o” option, is there a way to direct isql output to a file? I would like to specify the file name dynamically in a stored

DevX - Software Development Resource

Finding User NAME on NT

Question: My problem is that once I get the logged-on user id, I need to get their full name from the NT security. Is this possible? For example: UID: jsmith123Name:

DevX - Software Development Resource

MTS 2 import package error

Question: I attempted to import a package (*.PAK) file from another MTS server, and I got an error message. Both MTS servers are running the same version ofNT and MTS.

DevX - Software Development Resource

Changing Windows NT Password Progmatically

Question: How can I change my Windows NT server password through a program? Answer: Actually, this is rather simple. However, heed the following precaution from the MSDN documentation on this

DevX - Software Development Resource

DOS Level error code

Question: Do you know how to return DOS level code from a program upon exit? Answer: On most systems, you can simply return a value from your main function.int main(){

DevX - Software Development Resource

User-defined string functions

Question: I am moving from other languages to Visual C++. I am trying to write a function that returns a string (or pointer to a string), which will then be

DevX - Software Development Resource

Visual C++ 5.0 compatible with C?

Question: I am studying C and C++ programming on my own. I have no previous programming experience. I am using Visual C++ 5.0 to run the following example “program 8.12”

DevX - Software Development Resource

‘80004005’ Error in Visual InterDev

Question: I am trying to view the table information by using the Data Form Wizard in Visual InterDev. I have successfully previewed the fileList.asp form that is created by the

DevX - Software Development Resource

Crashing Internet Information Server

Question: Is it possible to crash a server from an Active Server Page (ASP) if you are using an object instantiated via an ActiveX DLL installed on the server? My

DevX - Software Development Resource

Accessing private member of linked list class

Question: I have a linked list class whose private data members I want to access and initialise through a dialog box generated through the VC++ wizard. Debugging gives me an

DevX - Software Development Resource

Visual Basic or Visual C++

Question: I am interested in buying a new compiler and don’t know wether to purchase Visual Basic or Visual C++. I have taken a course in C++, but I am