Hello all, I am seeking some help with the following problem. I'm
working on an application where I have a resource file, and in this
resource file what I want to store is a list of file names (that is,
essentially a string array).
The potential solutions I see are:
1) Convert the string array into one big string with each element
separated by some special value, store that string into the resource
file's string table as a single entry, and then when I load the string
from the resource file parse it into a regular string array. The
problem with this is the obvious kludgy-ness of having to generate the
string, and then re-parse it whenever I want to read it from the
resource file. But its certainly doable.
2) To make a custom resource, and store the string array as a custom
resource, and re-load it back into my application. This seems the more
elegant solution, but I have no idea how to go about doing this. I
found a tutorial online to do something similar with an array of longs
via the CopyMemory API call, but the sample code caused VB to crash on
me (and I want a solution that's not buggy/unstable).
3) To use an external file to my application. This is however
unacceptable for my specific application.
Any suggestions/tips would be appreciated.
Thanks,
Adam