🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.misc
3 messages
3 total messages Started by The Lone Ranger Mon, 07 Jul 1997 00:00
Help in C / C++
#2947
Author: The Lone Ranger
Date: Mon, 07 Jul 1997 00:00
19 lines
1201 bytes
Hi

I'm trying to append a DATA file to the end of a C exe. 

Does anyone know how this can be done?
Are there any source code examples out there?
Are there any internet links I can look up?

Any little help would be great....



The Lone Ranger
The Truth Is Out There
X

http://www.clubi.ie/the-lone-ranger
#Ireland
Re: Help in C / C++
#2948
Author: Norman Bullen
Date: Mon, 07 Jul 1997 00:00
22 lines
1546 bytes
The Lone Ranger wrote:
> 
> Hi
> 
> I'm trying to append a DATA file to the end of a C exe.
> 
> Does anyone know how this can be done?
> Are there any source code examples out there?
> Are there any internet links I can look up?
> 
> Any little help would be great....
> 

I'm going to presume, since you posted this to some Windows programming 
newsgroups, that you would like a Windows answer. That is:

You can make a resource out of any file you like. See the RCDATA 
statement in your resource editor documentation and FindResource(), 
LoadResource(), etc. in your Windows API documentation.

Norm
Re: Help in C / C++
#2949
Author: Arkadiusz Dabrowski
Date: Tue, 08 Jul 1997 00:00
37 lines
1696 bytes
On Mon, 7 Jul 1997 16:11:23 +0100, "The Lone Ranger" <xxxxxxxxx@clubi.ie> wrote:

>Hi
>
>I'm trying to append a DATA file to the end of a C exe. 
>
>Does anyone know how this can be done?
>Are there any source code examples out there?
>Are there any internet links I can look up?
>
>Any little help would be great....
>
>
>
>The Lone Ranger
>The Truth Is Out There
>X
>
>http://www.clubi.ie/the-lone-ranger
>#Ireland
>
>
>
open data file for reading;
read data file;
open exe file for writting (append at end);
write data;
That's it.

or
copy /b exefile+datafile newexefile

    +--\ /--\ +--\ +--\ /--\ |  |             Arkadiusz Dabrowski
    |  | |  | |--< |--/ |  | |  |             dobrov@priv.onet.pl
    +--/ \--/ +--/ |  \ \--/  \/     stare konto:
                                     dobrov@zeus.polsl.gliwice.pl
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads