Thread: Compiling data into an executable

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

    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,793

    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,273
    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, 12: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, 11:35 AM