Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,706 of 10,840    |
|    Adam Parkin to All    |
|    Resource files and string arrays    |
|    27 Oct 05 16:38:37    |
      From: pzelnip@hotmail.com              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              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca