CopyMemory and Arrays: Proper Use
This article will show the reader the advantages and disadvantages of using CopyMemory on arrays to achieve faster speeds when handling a sorted array. It will also show the reader the caveats of the API implementation and how to avoid them.
Custom Data Types in VB6, Fast String Implementation
It's long been said that VB is not good at custom data type handling. This code provides a framework for building your own data types in VB6. This project cotains the concept of using memory to hold data and to wrap the data held as a data type. In addition, the code comes with your own implementation of Integer, Long, Byte, ByteArray and String.
How to sort objects in a collection
Sorting objects in a collection is not necessarily as simple as you would hope - or at least having a routine that can sort any collection using any object is not that straightforward. Most programmers know how to sort and this piece is not about sorting algorythms, of which there are really quite a few if you look into it. Also, the code presented here is not really intended to sort large collections, as not much of an attempt has been made to optimize it for speed. But this code does show you how to handle the issues you will come across if you need generic code to sort objects that are contained in a VB Collection.
Optimize string handling in Visual Basic
String handling in Visual Basic is slow if done the wrong way. You can add significant performance to string operations by following a few easy tricks.