Attatching information to executables

This is a discussion on Attatching information to executables within the C++ Programming forums, part of the General Programming Boards category; Hello, my first post, not my first problem . OK, I am developing a program for game development without programming. ...

  1. #1
    Evil Genius
    Join Date
    Jun 2004
    Posts
    2

    Attatching information to executables

    Hello, my first post, not my first problem .
    OK, I am developing a program for game development without programming. It can be found at geocities.com/clickcreator.

    But, heres my problem - I need to have a runner executable, which runs half-compiled code (interpreter). But I want to have just one file with everything in it - just a EXE. How can I embed the data at the end of the executable? I was thinking maybe tricking it into stopping at a paticular point, but I'm not so sure. Right now it's in a seperate game.dat file.

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    This would be windows specific, and you can do it by using resources. Depending on what you are actually storing it might be a bit difficult--I'm not really sure because all I've ever stored are icons and string tables

    You might start with a google search on resources or resource files (or something along those lines)
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  3. #3
    Evil Genius
    Join Date
    Jun 2004
    Posts
    2
    Well, I'll google it. What can't be?
    I'm trying to store strings. Such as

    ROOM
    DIM: 640 480
    BGC: 100 100 100
    OBJ: 1
    OBJL
    OBJ 1 !

    also, I'm NOT exactly a windows programmer - I can understand Windows code, not write it. I'm using SDL.

    *edit*
    Maybe I should mention that the information will NOT be known at compile time - The editor will need to attatch it to the executable.
    Last edited by Cjmovie; 06-18-2004 at 03:25 AM.

  4. #4
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    The editor will need to attatch it to the executable.
    Doing something like this at runtime will require a lot of effort, it may be more worth your while to investigate other solutions to your problem.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    13
    Check google with the question: how does archiv-files works. it's really easy. you can use the same princip in your program.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 06-01-2009, 08:54 PM
  2. Replies: 6
    Last Post: 07-07-2008, 08:48 AM
  3. Assignment Help !! (Student information system)
    By ashb in forum C++ Programming
    Replies: 6
    Last Post: 03-12-2005, 05:32 AM
  4. Going out of scope
    By nickname_changed in forum C++ Programming
    Replies: 9
    Last Post: 10-12-2003, 07:27 PM
  5. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-21-2002, 12:35 AM

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