Tip Bank

DevX - Software Development Resource

Memory Deallocation Myths

A common myth among programmers says that you can avoid calling delete in your application because the operating system will release the allocated memory when the application terminates anyways. Indeed,

DevX - Software Development Resource

Open and close the CD drive’s door

Here’s a short code snippet that lets you programmatically open and close the CD door. Note that not all the CD drives support these functions: Private Declare Function mciSendString Lib

DevX - Software Development Resource

LinkedList – a class module to store list of values

‘————————————————-‘ LINKED LIST class module” This class implements a linked list structure, where you can store’ values (appending them after the last element or inserting them at’ given indexes), remove

DevX - Software Development Resource

HashTable – a class module for storing (key,value) pairs

‘———————————————-‘ HASHTABLE class module” This class implements a hashtable, a structure that offers many’ of the features of a collectior or dictionary, and is often’ even faster than the built-in

DevX - Software Development Resource

CBitArray – a class for dealing with large arrays of Boolean

‘ ————————————————————————‘ The CBITARRAY class” simiulates an array of Boolean values’ saves memory by packing one element in one bit” IMPORTANT: you make make ITEM the default member for this