The Latest

DevX - Software Development Resource

Locking Rows

Question: We are developing an intranet application using visual interdev on windows 2000 and our informix database is on unix. We are using stored procedures and the ‘begin work’ and

DevX - Software Development Resource

Outlook Web Access

Question: When trying to create an e-mail from OWA the following error message appears: ‘Your message body is too large. OWA only supports message bodies up to 100K…’ This message

DevX - Software Development Resource

MS Outlook

Question: I have a form that is being sent from Outlook 98 to Outlook 2000. The form contains a small macro (VB Script). How do I prevent the EnableDisable macro

DevX - Software Development Resource

Return E-mail Address for Outlook 98

Question: I have three workstations for three different users. They have different local e-mail addresses but they share the same internet e-mail address. Sending an e-mail is no problem but

DevX - Software Development Resource

Using Parameters in XSL Select Statements

Question: Given the XML file: Sometimes we want to display name1 and sometimes name2. We figured that perhaps we could set a parameter. Then we could pass in the name

DevX - Software Development Resource

Restoring an Exchange Server

Question: The BDC was the exchange server, and now it can’t see itself as BDC or a server. It shows on the SERVER MANAGER as a workstation. We have a

DevX - Software Development Resource

Hiding the Command Window

Question: How can I hide the command window when a project is running? Answer: To hide the command window, issue the following command in your code: HIDE WINDOW COMMAND Related

DevX - Software Development Resource

FoxPro Syntax

Question: I was told that aMemo and alines are FoxPro commands but I can not find them in FoxPro help. Is my version of FoxPro too old? I am on

DevX - Software Development Resource

Information Store Size

Question: The company I work for has 15 employees and perhaps 25 legitimate mail boxes between users and service accounts. I have at least 5 users that have mail boxes

DevX - Software Development Resource

Adding Message to Forwarding E-mail

Question: My company wishes to do some special e-mail forwarding. Is there a way to take an incoming message, place a message at the top or in the subject line,

DevX - Software Development Resource

Escaped Characters

Question: When defining a string, is there a way to include a carriage return in the text? Answer: Yes. A carriage return is represented by the special escapedcharacter . However,

DevX - Software Development Resource

ALTER TABLE Command

Question: I’ve archived/purged a few thousand rows of unnecessary data, but the disk space reading hasn’t changed. Do I need to use the ALTER TABLE command to reclaim empty space

DevX - Software Development Resource

System.exit(0)

Question: Most GUI examples show System.exit(0) as the window closing eventhandler. However, System.exit(0) is a bad way to exit applications.The specification says that the VM will exit when all the

DevX - Software Development Resource

Software Required to Make ASPs

Question: Which software is required for Active Server Pages development? Answer: Internet Information Server (IIS) is the most common way to implement ASP, but there are other plug-ins available for

DevX - Software Development Resource

Listing Available Tables

Question: How do I list the available tables in a database I’m querying? Answer: You can get a list of tables in a database by calling the INFORMATION_SCHEMA.Tables view like

DevX - Software Development Resource

Return ID in Same Query as Insert

Question: How do I write a query that does an insert and returns the newly assigned ID from that field, all at one time? Answer: The @@IDENTITY variable returns the

DevX - Software Development Resource

RecordCount Property-ADO

Question: How do I get the rowseffected from the execute method of an ADO command object?The code I’ve written is: Dim Cn as New ADODB.ConnectionDim Cmd as New ADODB.CommandDim Recordset

DevX - Software Development Resource

Distribution List E-mail Stuck in Outbox

Question: When I try to send e-mail to the distribution list, it gets stuck in outbox. What should I do? Answer: I’d start by verifying that all of the addresses

DevX - Software Development Resource

Counting Duplicate Rows

Question: How do I count the number of duplicate items in a table? Answer: Lets break down your question into several steps.First, let’s create a sample table using the following

DevX - Software Development Resource

Creating Tables in a Stored Procedure

Question: Can I create a table in a stored procedure named from a parameter? Answer: You can dynamically create tables with variables, but you need to create a string and

DevX - Software Development Resource

How to Initialize an Array

Question: How do you initialize or assign values to an array in a class? Answer: The short answer is that you can’t initialize an array member as you would initialize

DevX - Software Development Resource

NT Backup While Exchange Is Running

Question: Can I use NT Backup to get a complete backup of PRIV.EDB and PUB.EDB while Exchange is running? Answer: NT Backup is Exchange-aware so you do not need to

DevX - Software Development Resource

Error Handling Routines

Question: While converting source code from C to C++, I came up with difficulties in converting error handling routines like err_quit(),err_sys(),etc. Are there C++ versions of these functions and where

DevX - Software Development Resource

Indirection Operator

Question: Can you use the indirection operator like a memcpy to copy the contents of a structure like this? *m_pMyInfo = stMyInfo; Or should you use the memcpy function? memcpy(m_pMyInfo,

DevX - Software Development Resource

Synchronized Method Overhead

Question: I am interested in keeping my code running as fast as possible. Is there a cost associated with making my methods synchronized, and if so, how significant a cost?