Re: xpm resources
- Posted by Shian_Lee May 06, 2015
- 2567 views
Irv,
Programs are using static and dynamic data/runtime files, call it DAT, TXT, DLL, so, CFG, INI, XML, WAV, MP3, JPG, AVI, MP4, what ever. Static or dynamic data is technically the same. And you cannot live without it.
I usually teach my users how to backup to a USB-Key, Dropbox, or another way - this is part of the service I give. More then this: only God can help.
Trying to bind the DLL, AVI and INI file on top of the executable is an adventure - but what for?
If I had 10 or 100 JPG files which are part of my user interface, then I would simply bind them into MY-PROG.LIB (maybe LIB is more safe then annoying DAT?), and use them as any other critical database (what is more critical - the user interface design, or the actual user's database?).
But if you insist, then just open the JPG file in binary mode and load it into sequence(s), using jpg_image &= sprintf("%d,", getc(fn)).