Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Storing files in a dll, or somewhere like that...

Storing files in a dll, or somewhere like that...

Scheduled Pinned Locked Moved C / C++ / MFC
game-dev
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anthony Mushrow
    wrote on last edited by
    #1

    I have a game here, and it has about 30 music files, as well as 20 or so data files, and another 30 images, there all in their folders all nice and neat. But i was wondering if there was a quick and easy way to store the files another way. And at the moment, its perfectly possible for a user to just delete some files, making the game useless, or changing the files, making the game... wierd...

    D 1 Reply Last reply
    0
    • A Anthony Mushrow

      I have a game here, and it has about 30 music files, as well as 20 or so data files, and another 30 images, there all in their folders all nice and neat. But i was wondering if there was a quick and easy way to store the files another way. And at the moment, its perfectly possible for a user to just delete some files, making the game useless, or changing the files, making the game... wierd...

      D Offline
      D Offline
      DLChambers
      wrote on last edited by
      #2

      You could indeed store all those the files in a dll and extract them either as-needed or extract them all upon app startup to a temp dir then delete the temp dir on app exit. The typical way to store data (eg: a file) in a dll is to put it in the dll's resource table.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups