Home All Groups Group Topic Archive Search About

embed s file in exe

Author
4 Oct 2006 5:47 AM
Robert
Dear all,

       I want to embed a motorola s file in my exe file using Visual
C++.net,
     and then I can use the data in the Motorola file.  How should I
do?
     I am urgently need your help.
     Thanks a lot.

Author
4 Oct 2006 6:23 AM
Peter Duniho
"Robert" <wanghany***@gmail.com> wrote in message
news:1159940860.768846.4190@i3g2000cwc.googlegroups.com...
> Dear all,
>
>       I want to embed a motorola s file in my exe file using Visual
> C++.net,
>     and then I can use the data in the Motorola file.  How should I
> do?

You can include it as a binary resource (just add the file in the resource
editor).  Then load it by name...it will come in as a byte array type.  (If
for some reason it's detected as text, you can explicitly set the file type
to "Binary" in the resource's property editor).

AddThis Social Bookmark Button