User forums > General (but related to Code::Blocks)
XRC files...
Anonymous:
that defeats the whole purpose of XRC, maybe you don't need XRC then.
thomas:
You could use wxrc with the /c switch, this ouputs a c/c++ file which you can put in your project. This does not encrypt anything, but it hard-codes the resources into your program so that at least the average user will have problems editing them.
The resources are, of course, still plaintext in your executable, so someone able to use a hex editor won't have problems reading, but the dialogs appear "plaintext" on the screen, too, so there is no big secret, anyway.
darklordsatan:
Thanks Thomas, seems like a nice switch, will take a look
--- Quote from: Guest ---
that defeats the whole purpose of XRC, maybe you don't need XRC then.
--- End quote ---
Sort of. But likely the purpose of xrc is to give the possibility to change a dialog by an easy means (a dialog editor, or manually) and then not having to recompile anything (unless you add new controls...). But the fact its plain text, thats another matter...
rickg22:
Why don't you ask in the wxwidgets forums? (I mean the ones in the official wxwidgets site)
darklordsatan:
Yep, I will *duh! for me*
Navigation
[0] Message Index
[*] Previous page
Go to full version