The Latest

DevX - Software Development Resource

AWT Thread Interaction

Question: I have two threads in an application. Thread A displays a form andallows the user to interact with it, thread B executes a loop whichcontinually retrieves data and updates

DevX - Software Development Resource

Textfield Alignment

Question: How do I right align numbers in a textfield? Answer: This is yet another example of why the Swing classes should be used inlieu of the AWT classes. Swing

DevX - Software Development Resource

Initializing A ResultSet

Question: I am building a prototype but am trying to make the code as reuseableas possible. To test the prototype, I need to simulate a ResultSetbeing returned from a database.

DevX - Software Development Resource

C-Style Function Pointers

Question: While trying to port some C code to a C++ implementation, I ran into this problem. The module this came out of was designed to “automate data handling used

DevX - Software Development Resource

Languages Used for Windows Programs

Question: I need to know what languages are used in the implementation and programming of Windows 95 et al. (Windows 98, Windows NT, and Windows 2000). Any help or referrals

DevX - Software Development Resource

Display an Alert After the Page Loads

Question: How do I make an alert box pop up 10 seconds after the page loads? Answer: You can display an alert a certain length of time after the page

DevX - Software Development Resource

Outlook Client Locks Up

Question: We have someone using PPTP to connect to our Exchange server. He is able to use the intranet without problems. He can even get into Outlook, but the troubles

DevX - Software Development Resource

New Versus Malloc()

Question: Why is it necessary to typecast the return value of malloc() but not for the new operator? This question has been asked of many C++ experts but no one

DevX - Software Development Resource

Removing cc:Mail Connector

Question: I need to remove the cc:Mail connector. How do I do this? Answer: Though it would seem intuitive to select the connector and click Delete but that actually won’t

DevX - Software Development Resource

Duplicate Holidays on Outlook Calendar

Question: Because my work and home computers were accidentally set to different time zones when I imported Calendar info from one system to the other, I ended up with multiple

DevX - Software Development Resource

Dynamic Views Using the System Date

Question: I have a user who wants me to create a dynamic search view where the data retrieved is effective within the last six months using the system date. Is

DevX - Software Development Resource

Class Scoped Constants

Question: Is there a better way to scope constant values within a class other than by using “enum”? class Foo {public: enum { valueOne = 1, valueTwo = 2 }

DevX - Software Development Resource

Caching JavaScript Files

Question: If I include a .js file using the src attribute of a script tag and then I need to change the content of the .js file (perhaps to correct

DevX - Software Development Resource

Dynamic Report Generation

Question: How can I develop a report such that the user can choose what fields of a (single) table should be retrieved and printed? For example, a customer table with

DevX - Software Development Resource

Remote Mailbox Access Takes Too Long

Question: I am running Microsoft Exchange 5.5 Server with Microsoft Outlook 2000 as client software. For my remote users, they are using the offline folders. Every time a user dials

DevX - Software Development Resource

Detecting Alphabetic Data

Question: How do you detect alphabetic data being entered into an integer field from a cin statement? Answer: The easiest way to do that is by having cin read a

DevX - Software Development Resource

Storing Strings Within an Application

Question: I have a series of strings that I wish to store in the program directory. I want to save them all to the same file and be able to

DevX - Software Development Resource

Securing Images on Your Site

Question: Is it possible to keep someone from downloading an image from my Web site? Answer: It’s certainly possible to secure some of the files on your Web site. The

DevX - Software Development Resource

Informix ODBC Drivers 3.31

Question: I am currently running Informix Dynamic Server 2000 version 9.20 TC1 on an NT server, Service Pack 6a. I have existing Visual Basic 5 applications that are using ADO

DevX - Software Development Resource

DATETIME Type Conversion

Question: I need some help with the DATETIME data type conversion. I have an Informix database running in a UNIX environment and I need to insert the system hour into

DevX - Software Development Resource

Preventing Users from Deleting E-mail

Question: I would like to prevent users from deleting e-mail in Outlook 97 on a Windows 95 or Windows NT workstation in combination with Exchange Server on an NT server.

DevX - Software Development Resource

Possibility of Decompiling an EXE File?

Question: How can I get the source code from EXE files? Does it matter if they are read-only? Answer: This question is asked very frequently. However, the answer is always

DevX - Software Development Resource

Explaining the Modulus Operator

Question: What does the modulus (%) operator do? Answer: The modulus operator returns the remainder of a division operation. For example, 5%2 equals 1 because dividing 5 by 2 gives

DevX - Software Development Resource

Deleting/Expanding a Column

Question: What is the proper method(s) to delete a column from a table or expand the size of a column in a table? Adding is easy. Deleting and changing obviously

DevX - Software Development Resource

Pointers to Class Member Functions

Question: I’m trying to write a program that has a pointer to a private member function of a class. A public member function calls some of the private functions by

DevX - Software Development Resource

Segmentation Fault

Question: What is a segmentation fault? I get it when I try to output an integer. (It’s a very basic program: it reads in an integer and spits it back

DevX - Software Development Resource

Informix OLE DB Provider

Question: I have IDS 7.31.UC2A and I want to register Informix OLE DB Provider on this database server. I need the %INFORMIXDIR%etccoledbp.sql script for running it against the sysmaster. Can

DevX - Software Development Resource

Unconsting a Const Reference or Object

Question: I have encountered a problem as follows: void foo(const int& var){ foo2(var);}void foo2(int& var)… So what I did was void foo(const int& var){ foo2((int&)var); ^^^^^^} and it compiled *_*