Re: What is the best approach to store large data in an app?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



It would be easier for me to assist you if you could show me exactly what
you are doing in terms of code. It would be substancially easier to create
your RES file with your prorietary data using the VB resource editor. You
would add your resource using the "other resource" button and giving it a
unique name.

When I get home, I will post some code for you to show how I use RES files
to extract binary data, which should work for you with just about any binary
format.

- Kev


"Andrew" <Andrew@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C90F6E3E-2944-46DA-8F7A-61F24ADCEDFB@xxxxxxxxxxxxxxxx
> Thanks, Kevin. I tried to use VC++ to add our binary files into its
> resources. After compilation, I got a .res file, which I could add to VB
> project as a related document.
>
> My question now is:
> In VB, how to access those related document programmatically? Any sample
> code or reference paper?
>
> (Our binary files has a header, about 100 bytes, followed by numbers
> count
> by byte.)
>
> "Kevin Provance" wrote:
>
>> RES files can handle just about any format, if you do it right. What
>> kind
>> of files are you attempting to compile into a RES file? I may have some
>> code for you to help, if I can get a bit more info on your situation.
>> I've
>> done everything from strings, to wavs, to AVI to HTML, to many image
>> formats
>> to actual DLL files.
>>
>> - Kev
>>
>>
>> "Andrew" <Andrew@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:490ECE33-F7C7-4551-BA4D-DF706A53AB17@xxxxxxxxxxxxxxxx
>> > Hello, friends,
>> >
>> > We have a VB6.0 application which need to read binary data from our
>> > pre-recorded files. Since we spent a lot money and efforts on those
>> > files
>> > (thousands of files), we do not want to give out them as-it-is when we
>> > sell
>> > our app. Rather, we want to do something on them so that it will not
>> > be
>> > easy
>> > to be figured out.
>> >
>> > Moreover, we also want to keep these data files separate from main .exe
>> > file
>> > so that we can upgrade our app easily in future, in the case that we
>> > may
>> > have
>> > some changes on those pre-recorded data files.
>> >
>> > What are the best approaches to implement this? (We are thinking to
>> > compile
>> > all those files into a .dll file, but how? I tried to put those file
>> > into
>> > .res, .res did not take our format)
>> >
>> > Any ideas, reference paper and sample code?
>> >
>> > Thanks a lot for your help.
>>
>>
>>


.



Relevant Pages

  • Resource file
    ... one resource file at a time and that I have the alternative to compile the ... user to add graphics files to a program, and then dump them into a resource ... One alternative is instead of compiling a .RES file, ...
    (microsoft.public.vb.general.discussion)
  • Re: Resource file
    ... >one resource file at a time and that I have the alternative to compile the ... >the end users choice of graphics. ... >One alternative is instead of compiling a .RES file, ...
    (microsoft.public.vb.general.discussion)
  • Re: Resource file
    ... How do i compile a .res into the exe? ... >>How do I get an icon/bitmap from a resource file ... > From teh .Res file directly, of from an executable that the .Res file ...
    (microsoft.public.dotnet.languages.vb)
  • Create, Edit and Save .res files
    ... string table in a .res file (or a satellite resource DLL) and translating ... I'm willing to share the source code with the community ...
    (microsoft.public.vb.general.discussion)
  • Create, Edit and Save .res files
    ... string table in a .res file (or a satellite resource DLL) and translating ... I'm willing to share the source code with the community ...
    (microsoft.public.vb.winapi)