Re: Automating VB IDE ?
- From: "expvb" <nobody@xxxxxxx>
- Date: Wed, 26 Jul 2006 11:11:25 -0400
"DanS" <t.h.i.s.n.t.h.a.t@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:Xns980C7106FFC5Bidispcom@xxxxxxxxxxxxxxxxx
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
Look for UpdateResource() in MSDN. It requires Windows NT, but you could
extract the resource in any Windows version.
.
- Follow-Ups:
- Re: Automating VB IDE ?
- From: DanS
- Re: Automating VB IDE ?
- References:
- Automating VB IDE ?
- From: DanS
- Automating VB IDE ?
- Prev by Date: Re: Searching for files in VB
- Next by Date: Re: Searching for files in VB
- Previous by thread: Automating VB IDE ?
- Next by thread: Re: Automating VB IDE ?
- Index(es):
Relevant Pages
|