Compiling data into an executable

This is a discussion on Compiling data into an executable within the Windows Programming forums, part of the Platform Specific Boards category; Hello, I'm writing a program that allows you to create, how can I put this... "presentations", for want of a ...

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266

    Exclamation Compiling data into an executable

    Hello,

    I'm writing a program that allows you to create, how can I put this... "presentations", for want of a better word, and I also want to provide the capability to save the data into a stand-alone executable. My Flashiest program yet

    As far as I can see, I need a pre-compiled "stub" program that handles the presentation data to which I need to sellotape the data to. This could be possible through the magic of the Win32 PE format, in that I can write the data to a data section in the EXE, but I'm not sure if it could be referenced by the stub there. Any ideas?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

    Re: Compiling data into an executable

    Originally posted by SMurf
    Hello,

    I'm writing a program that allows you to create, how can I put this... "presentations", for want of a better word, and I also want to provide the capability to save the data into a stand-alone executable. My Flashiest program yet

    As far as I can see, I need a pre-compiled "stub" program that handles the presentation data to which I need to sellotape the data to. This could be possible through the magic of the Win32 PE format, in that I can write the data to a data section in the EXE, but I'm not sure if it could be referenced by the stub there. Any ideas?
    Yes but it's really difficult to do.....

    Why not create an app that reads what you want to present from a file....you can create more code to store this data in a special format applicable to your app...then read it up and display

    Maybe I'm utterly missing the point of what you exactly want to do..........maybe if I had more info

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,266
    In case you didn't quite catch the emphasis I placed on the "Flash" part of "Flashiest", yes, the program is a somewhat simple rip-off of Macromedia Flash.

    Hence, in Flash, it is possible to make stand-alone players so a user can play a Flash animation without all the gory parts of the Flash player present on their system.

    Yes, I agree, I could just make the stub program a single file and the data another, but that's not how it's done in Flash, therefore it wouldn't be a rip-off!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lame null append cause buffer to crash
    By cmoo in forum C Programming
    Replies: 8
    Last Post: 12-29-2008, 03:27 AM
  2. Errors
    By Rhidian in forum C Programming
    Replies: 10
    Last Post: 04-04-2005, 01:22 PM
  3. Binary Tree, couple questions
    By scoobasean in forum C Programming
    Replies: 3
    Last Post: 03-12-2005, 09:09 PM
  4. All u wanted to know about data types&more
    By SAMSAM in forum Windows Programming
    Replies: 6
    Last Post: 03-11-2003, 03:22 PM
  5. Replies: 1
    Last Post: 07-31-2002, 12:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21