
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.
This is something that expert VB developers know very well, yet every know and then an otherwise perfect VB app stops with a fatal overflow error because of Integer overflow.
Unlike other languages – such as C and Delphi – VB lacks of the capability to increment and decrement a variable. Adding this feature, in the form of reusable Function
‘ Comb Sort an array of any type” CombSort is faster than all but QuickSort and close to it.’ On the other hand, the code is much simpler than QuickSort’
Type SAFEARRAYBOUND cElements As Long ‘ # of elements in the array dimension lLbound As Long ‘ lower bounds of the array dimensionEnd TypeType SAFEARRAY cDims As Integer ‘ Count
Option Explicit’ Class Name : BTree’ Author : John Holfelder’ Date : 17-Apr-2000 12:08 pm’ Description : This class is a way of creating Binary search’ trees. Instead of pointers
Suppose you create a vector and fill it with elements: vector MyVector;MyVector.reserve(20);for (int i=0 ; i tmp(MyVector);MyVector.swap(tmp); The vector temp has the same number of elements that MyVector has. By
One of the common sources for bugs and security risks is using a fixed size char array as a buffer for inputting data. For example: char buff[20];cout > buff; //
The standard C library declares the function calloc() in as follows: void *calloc(size_t elements, size_t sz); calloc() allocates space for an array of elements, each of which occupies sz bytes
Certain STL containers and algorithms require that you overload operator < for the class type they store as elements in order to sort and compare these elements. Note that STL
Suppose you need to fill a container with pointers to objects instead of actual objects. Usually, you do this when you want to store objects of different types in the
Unix systems keep dates in a single number format that represents the numberof seconds past January 1, 1970. January 1, 1970 is considered the EPOC and is the date that
We know that using Hashtable we can put and get the java objects relatively fast. But Hashtable does not maintain the order in which you add and retrieve the objects.
Question: How do I format my numbers in the format ######, where a number of 123 would display as 000123? Answer: Concatenate a string of zeros to the left of
Question: How do I change the size limits of messages in a mailbox? Answer: You can’t really set a limit on the individual messages already in a mailbox, but you
Question: How do I define a new line character in ASP? Answer: In ASP (VBScript), use the constant vbCrLF to add line breaks in your string variables: strString = “Hello”
Question: Can I make a COM component in VB return a query result in the form of a recordset to the calling ASP Script? Answer: Yes, a COM component can
Question: How do I send data from a form in an ASP page to a database table in SQL Server 7.0? Answer: Obtain the data from the ASP page’s Forms
Question: Can I use Outlook 98 to read my hotmail messages like I can with Outlook Express? Answer: Not like you do with Outlook Express, no. With Outlook 2000, you
Question: I have set up conference rooms as mailboxes in Outlook 2000, which is working well but I have a few questions: Currently, we have to schedule the room as
Ever wanted to delete files from the local machine that your SQL Server database is running? You can do it using the extended stored procedure xp_cmdshell like this: EXEC master..xp_cmdshell
The TreeView control doesn’t expose any property that lets you limit the amount of text users can type when editing a Node’s label. However, you can do the trick with
Sendkeys “{TAB}” can lockup the keyboard in Windows 2000. Here’s how toexecute a tab in the keydown event using the Win32 API to get around thisWindows 2000 bug: Private Sub
Question: How do I set up offline public folders that are synchronized on a laptop that runs Outlook 98 connecting to Exchange 5.5? Answer: Have the users who want to
Question: Can I run a program/process/rule to prune the sent items and/or deleted items folder for users? Answer: You could use either ExMerge or Mailbox Manager to do that. ExMerge
Question: Why do I get the error message “Could not create a new session because the file wasn’t found” when I try to start a new emulator session? Answer: Be
Question: How do I know (with ASP) if the browser is a phone or a personal digital assistant? Answer: HTTP_USER_AGENT is really the only way that we have to identify
Question: I’m using the Nokia WAP toolkit in conjunction with MS Interdev to write dynamically generated WML. I’ve configured the IIS server to handle the new MIME types, but each
Question: How do I totally remove Exchange 5.5 from Windows 2000 Advance Server? Answer: Go to Start | Settings | Control Panel | Add/Remove Programs | Microsoft Exchange Server. Have
Question: Why do I get DNS failure every time I go to a workstation and try to send out email through Outlook 2000? Answer: You need to go into the
Question: I wrote: class Adjective { Sentence adjective_sentence; }; class Noun { Adjective a; }; class NounPhrase { Noun n; }; class Sentence { NounPhrase np; }; Of course it











