Description of what I want to do
================================

I am using the "Microsoft VBScript Regular Expressions 5.5" COM object in VB6 to search for a list of 
numbers in a CSV string (loaded from a file) that is made up of 2-digit zero-filled numbers. The CSV 
string could contain thousands of values. 

Someone on vbforums.com posted some code that demonstrated an API method for finding a string in a 
file very quickly. It did this by first reading the file into memory. Someone else responded to the 
post with an even quicker API method (Merri's API Method) that removed the need for any Unicode-to-Ansi
string conversion. Merri's API Method is significantly faster on large files though not so on the sample
data file included.

The code I have put together so far runs both methods successfully for simple search strings but only the
slower API method, which includes the Unicode-to-Ansi conversion, is successful in returning regular 
expression matches. 

When you run the code you will see a drop-down list containing three sample search strings, one simple
string and two regular expressions which you can run both API methods against. The results for each
method are shown separately.

I would like to make use of Merri's API Method to perform regular expression searches on the file without
the overhead of any Unicode-to-Ansi conversion on the file data itself. However, I will need to do the
conversion on the actual matches found so that I can process them further. I think this will involve the 
use of pointers which I'm not familiar with. The function that performs the regular expression search 
and produces the match collection is called TestRegExp. 

I hope someone can help.

Best regards.


