Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
Question: I am trying to import data from a .CSV file and verify that the rec importing does not exist on the destination database (SQL7 DB), then either insert or
Question: I have a Microsoft Exchange mailbox and want to have all my e-mail forwarded to a Unix e-mail address. I tried the Forward All Mail feature in Outlook but
Question: I populate the list view control with the required items and each of these items are set with a pre-defined structure in the data attribute of the list view
Question: How do I compare two tables and extract only where field1 doesn’t match field2? Will MINUS do it? Answer: Yes, but it’s not that direct. To do MINUS (or
Question: How can I configure Exchange Server for simple automatic replies when e-mails are sent to a specific account? Answer: The easiest way to do this is to log in
Question: Is it possible to create a DTS package that does an Update rather than a Select statement? Also, when I save a DTS package in a file (*.dts as
Question: Does SQL 7.0 allow you to restore a table from a database dump much the way SQL 6.5 did? Answer: No, not exactly. The only way you can restore
Question: My Exchange server has two partitions (C and D). There is a file (TEMPDFRAG.EBD) that is on the C drive and is taking up a lot of space. Is
Question: I have a table in FoxPro 3.0 that I need to export to FoxPro 2.6 to give to someone outside my company. However, when I export, the memo fields
When you create an object in ASP using the Server.CreateObject() method, the object is created as soon as the method is called. Any threads, memory, or other resources are allocated
MTS objects clients should never have access to unsafe references. A client application should never be passed a direct reference to an MTS object. Once such a reference is passed
Question: If an exception is thrown in a destructor will the data objects in the class be destructed properly? Answer: Throwing an exception from a destructor is a bad idea
Question: I am a beginner with C++ programming. I was doing fine until I came to the string data type. Here is my problem: #include #include This gives me errors.
Question: How do you make the compiler generate an error when a variable is set to a value outide the range of the constrained type? For example; strong x; //strong
Question: Is there a problem with using the ?: operator instead of the if…else… construct? For example, see the following: if(iNum1 > iNum2) iNum3 = iNum1;else iNum3 = iNum2; The
Question: In Java using the java.lang.reflect classes, one can find out the name, class, and methods of an object simply by having a reference to that object. Is there a
Question: How can you caluculate interest using only integers and no double or floats? Answer: This question can be of interest for anyone who is confined to ineteger arithmetic. Many
Question: How do I pass a function as a parameter? Answer: First, let’s distinguish between a parameter and an argument. The parameter is the type of the object passed. An
Question: How can I declare a constant object that is actually constant? Answer: Here’s an example: const Date d; //create a const Date object Note that you can only invoke
Question: I’m trying to find information regarding anonymous unions in C++. I hear that in C++, one is able to declare a union such as: union example{ int a; int
Question: I can’t create an instance of the derived class using operator new. The base and the derived classes differ only by a virtual function. The error messages I receive
Visual Basic doesn’t provide any way to declare an array and initialize its elements at the same time. In most cases you end up with setting individual elements one by
Here is a one-liner that replaces the last occurrence of a substring in a string. It is slightly less efficient than using the InstrRev plus a Replace statement, but at
You can often use the Replace function in a smewhat unorthodox ways to simplify (and sometimes optimize) your code. For example, in order to count the number of occurrences of
I find the Replace function very useful when I want to avoid too many append operations just to insert non-printable characters. For example, the following statement: MsgBox “Disk not ready.”
To determine whether a String array contains a given item it seems that you can’t avoid writing a loop. However, you can do it with just one line of code,
Most API function that return a string require that you pass a buffer where they can place the result as a null-terminated ANSI string (a.k.a. ASCIIZ string). The calling code
Question: I created a program to Add User Account to my NT Server. It reads from a text file which provides the user info. Everything works fine, except that the
Question: I would like to know how to access a workstation which is configured and logged on to an NT domain, from another PC in a workgroup environment? Most of
Question: I need to know how to concatenate variables containing numbers, that is, string them together one after the other. Every method I know simply adds the various numbers together


