Click here to Skip to main content
16,018,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: playing video inside any control on my dialog box using direct show??? Pin
VCProgrammer9-Nov-11 17:58
VCProgrammer9-Nov-11 17:58 
QuestionDisplaying a bitmap on Static Control Pin
VCProgrammer8-Nov-11 23:13
VCProgrammer8-Nov-11 23:13 
AnswerRe: Displaying a bitmap on Static Control Pin
Richard MacCutchan8-Nov-11 23:20
mveRichard MacCutchan8-Nov-11 23:20 
QuestionXML to binary format Pin
mutpan8-Nov-11 19:00
mutpan8-Nov-11 19:00 
AnswerRe: XML to binary format Pin
Richard MacCutchan8-Nov-11 21:47
mveRichard MacCutchan8-Nov-11 21:47 
GeneralRe: XML to binary format Pin
mutpan8-Nov-11 21:54
mutpan8-Nov-11 21:54 
GeneralRe: XML to binary format Pin
Richard MacCutchan8-Nov-11 22:43
mveRichard MacCutchan8-Nov-11 22:43 
AnswerRe: XML to binary format Pin
Orjan Westin9-Nov-11 5:49
professionalOrjan Westin9-Nov-11 5:49 
I imagine the changed requirement is to prevent your customers from seeing the details of the configuration file?

If so, I'd suggest simply obfuscating the XML by running it through some encoder/decoder. This way, you still have the benefits of an extensible and flexible format, at the cost of an extra step when reading/writing the file.

Of course, how complicated this would be depends on what XML parser you are using, as I don't think there's one in MFC.

If your parser can parse from and export to a string - and if the string isn't excessively large - you can simply read your encoded binary data from file, decode it to a string, and parse that. Similarly, when saving the config, you'd export to a string, encode that, and save it to file. If your parser needs to work with files, you can use the %TEMP% area for the conversion.

There are plenty of encoders you could use, from base64 to libzip to various crypto algorithms, so just pick one that is quick, and simple to integrate.
AnswerRe: XML to binary format Pin
jschell9-Nov-11 11:05
jschell9-Nov-11 11:05 
QuestionText drawing in embedded system Pin
A_Fa8-Nov-11 4:10
A_Fa8-Nov-11 4:10 
AnswerRe: Text drawing in embedded system Pin
Orjan Westin9-Nov-11 6:16
professionalOrjan Westin9-Nov-11 6:16 
GeneralRe: Text drawing in embedded system Pin
A_Fa9-Nov-11 19:22
A_Fa9-Nov-11 19:22 
QuestionCListCtrl::InsertItem(...) - CImageList Pin
_Flaviu8-Nov-11 3:28
_Flaviu8-Nov-11 3:28 
QuestionRe: CListCtrl::InsertItem(...) - CImageList Pin
David Crow8-Nov-11 4:01
David Crow8-Nov-11 4:01 
AnswerRe: CListCtrl::InsertItem(...) - CImageList Pin
_Flaviu8-Nov-11 19:42
_Flaviu8-Nov-11 19:42 
AnswerRe: CListCtrl::InsertItem(...) - CImageList Pin
Roger Allen9-Nov-11 1:36
Roger Allen9-Nov-11 1:36 
AnswerRe: CListCtrl::InsertItem(...) - CImageList Pin
Roger Allen9-Nov-11 1:38
Roger Allen9-Nov-11 1:38 
GeneralRe: CListCtrl::InsertItem(...) - CImageList Pin
_Flaviu9-Nov-11 6:16
_Flaviu9-Nov-11 6:16 
QuestionAlways on top (modeless) dialog box Pin
Hadi Dayvary8-Nov-11 1:42
professionalHadi Dayvary8-Nov-11 1:42 
QuestionRe: Always on top (modeless) dialog box Pin
David Crow8-Nov-11 2:59
David Crow8-Nov-11 2:59 
AnswerRe: Always on top (modeless) dialog box Pin
Hadi Dayvary8-Nov-11 4:05
professionalHadi Dayvary8-Nov-11 4:05 
QuestionRe: Always on top (modeless) dialog box Pin
David Crow8-Nov-11 4:40
David Crow8-Nov-11 4:40 
AnswerRe: Always on top (modeless) dialog box Pin
Hadi Dayvary8-Nov-11 7:03
professionalHadi Dayvary8-Nov-11 7:03 
GeneralRe: Always on top (modeless) dialog box Pin
David Crow8-Nov-11 8:43
David Crow8-Nov-11 8:43 
GeneralRe: Always on top (modeless) dialog box Pin
Hadi Dayvary8-Nov-11 19:40
professionalHadi Dayvary8-Nov-11 19:40 

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.