Automating VB IDE ?

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



Greetings,

The current project I am working on is a field flashing utility for some
small embedded device CPU modules using a 'C' based language.

Each firmware image has a unique serial number within the C code. I plan to
write a small VB program that will edit one line in the C source file,
shell to this 'C' like compiler and do a command-line compile to a flash
binary image. It will then open the VB .frm and set the S/N number there,
save it, and do a command line VB6 compile into an flash upgrade exe.

The problem I am facing is that currently....the binary flash image is
stored in a resource file along with a few other supporting files required.
The flash image is the only part of the .res file that changes, due to the
fact that each firmware image contains a unique S/N.

Is there any re-course to somehow automate the editing of the res file ?

Would it be possible to open the RES file in binary mode and replace the
existing flash image with the updated one as long as it is the same size ?

Thanks in advance,

DanS
.



Relevant Pages

  • Re: Automating VB IDE ?
    ... Each firmware image has a unique serial number within the C code. ... and do a command line VB6 compile into an flash upgrade exe. ... The flash image is the only part of the .res file that changes, ...
    (microsoft.public.vb.general.discussion)
  • Re: What is the best approach to store large data in an app?
    ... your RES file with your prorietary data using the VB resource editor. ... to extract binary data, which should work for you with just about any binary ... >> of files are you attempting to compile into a RES file? ...
    (microsoft.public.vb.enterprise)
  • Re: TEventLogger
    ... > I added a RES file to the project which was compiled from an RC file which ... You need to compile the resouce in a special way. ... Prev by Date: ...
    (borland.public.delphi.non-technical)
  • Custom resource type
    ... I use a custom resource ' MYRES MYTYPE "myres.file" ' in rc file and compile ... them into res file and include it in my project. ...
    (borland.public.delphi.nativeapi)