Click here to Skip to main content
15,916,215 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralChecking the screen res Pin
bneacetp6-Aug-03 15:29
bneacetp6-Aug-03 15:29 
GeneralRe: Checking the screen res Pin
Hktam6-Aug-03 15:51
Hktam6-Aug-03 15:51 
GeneralRe: Checking the screen res Pin
bneacetp6-Aug-03 16:52
bneacetp6-Aug-03 16:52 
GeneralRe: Checking the screen res Pin
xxhimanshu6-Aug-03 19:01
xxhimanshu6-Aug-03 19:01 
GeneralRe: Checking the screen res Pin
Dangleberry7-Aug-03 2:50
sussDangleberry7-Aug-03 2:50 
Generala clipboard-question too Pin
Chao Zuo6-Aug-03 15:11
Chao Zuo6-Aug-03 15:11 
GeneralRe: a clipboard-question too Pin
Chao Zuo6-Aug-03 16:07
Chao Zuo6-Aug-03 16:07 
GeneralPacking and running files with protection Pin
Kayembi6-Aug-03 14:44
Kayembi6-Aug-03 14:44 
Hi,

I am writing a third-party filepacker/launcher for a small game engine. I have completed the launcher and filepacker, but because it is third-party, there are certain undesirable aspects that I would like to improve upon, and I was wondering if anybody here had any suggestions.

Essentially, as it is, the game engine leaves all of its files (models, bitmaps etc) open in the game directory. Obviously it's a good idea to pack these so that players can't just open the bitmaps and find out what is to come in later levels (ruining the "surprise"). However, the engine needs all of the files present in order to run (or rather, it needs some files present; others it loads when they are called in-game).

Thus (remember that I have no access to any of the game code - not that I am a good enough coder for that anyway - but am just writing an external packer), for my file-packer, I have had to resort to zipping the files (all game files, executable and all) up with password protection (using the excellent ZipArchive library from www.artpol-software.com), and then having the launcher extract the files to a temporary directory on the hard-drive when started and run the game from there (the files are deleted when the game closes). This means that most players will never see the files, which is certainly better than nothing. However, anybody can easily find the files by alt-tabbing out of the game and searching the hard-drive (and it also means that more hard-drive space is required). (The insecurity of the packer means that it won't appeal to many of the other developers using the engine - who will be the main users of my program - whose chief priority is protecting their files from each other...)

I was wondering if anybody here had any suggestions of how I could better protect these files. I had thought of trying to extract and run them from memory, but this seems an almost impossible task, and besides which, it would consume precious memory that the game requires to run (as I understand it).

The packer and launcher have been written using the Windows API, the ZipArchive library, and *no* MFC. I have hacked my way through the programming (with a lot of help from people here), but I am still a novice at C++, so if anybody does have any suggestions, I would be really grateful if you could explain it as simply as possible and tell me where to look for examples of what I need to do.

That's probably a lot to ask, and it's probably impossible anyway, but it's worth a shot!

Any suggestions would be really appreciated.
Many thanks,
KB
GeneralRe: Packing and running files with protection Pin
Andrew Walker6-Aug-03 15:13
Andrew Walker6-Aug-03 15:13 
GeneralRe: Packing and running files with protection Pin
Kayembi7-Aug-03 0:20
Kayembi7-Aug-03 0:20 
GeneralMFC picture control Pin
rapace6-Aug-03 13:20
rapace6-Aug-03 13:20 
GeneralRe: MFC picture control Pin
zeki yugnak6-Aug-03 13:43
zeki yugnak6-Aug-03 13:43 
GeneralRe: MFC picture control Pin
rapace6-Aug-03 13:51
rapace6-Aug-03 13:51 
GeneralCreating MHT archives Pin
DarrollWalsh6-Aug-03 12:47
DarrollWalsh6-Aug-03 12:47 
QuestionHow to use Windows XP 'fade to black and white' screen? Pin
ckr6-Aug-03 11:38
ckr6-Aug-03 11:38 
GeneralProblem with ShowWindow() and losing focus Pin
s_k6-Aug-03 11:17
s_k6-Aug-03 11:17 
GeneralMouse X.Y in WM_NOTIFY: LVN_ITEMACTIVATE Pin
Mike Doner6-Aug-03 8:59
Mike Doner6-Aug-03 8:59 
GeneralRe: Mouse X.Y in WM_NOTIFY: LVN_ITEMACTIVATE Pin
Chunhua Liu6-Aug-03 11:37
Chunhua Liu6-Aug-03 11:37 
GeneralRe: Mouse X.Y in WM_NOTIFY: LVN_ITEMACTIVATE Pin
jhwurmbach6-Aug-03 22:01
jhwurmbach6-Aug-03 22:01 
QuestionCreate a report in VC6? Pin
_skidrow_vn_6-Aug-03 8:48
_skidrow_vn_6-Aug-03 8:48 
GeneralCString toupper Pin
keegan6-Aug-03 8:38
keegan6-Aug-03 8:38 
GeneralRe: CString toupper Pin
Michael P Butler6-Aug-03 9:14
Michael P Butler6-Aug-03 9:14 
GeneralRe: CString toupper Pin
keegan6-Aug-03 9:23
keegan6-Aug-03 9:23 
QuestionHow to generate random number? Pin
DaveE9th6-Aug-03 8:38
DaveE9th6-Aug-03 8:38 
AnswerRe: How to generate random number? Pin
David Crow6-Aug-03 10:21
David Crow6-Aug-03 10:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.