Click here to Skip to main content
15,922,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c++ Pin
Laxman Auti13-Jun-06 19:24
Laxman Auti13-Jun-06 19:24 
AnswerRe: c++ Pin
toxcct13-Jun-06 21:37
toxcct13-Jun-06 21:37 
GeneralRe: c++ Pin
_AnsHUMAN_ 13-Jun-06 23:01
_AnsHUMAN_ 13-Jun-06 23:01 
JokeRe: c++ Pin
toxcct13-Jun-06 23:02
toxcct13-Jun-06 23:02 
Questionc++ functions Pin
surshbabuk13-Jun-06 18:44
surshbabuk13-Jun-06 18:44 
GeneralRe: c++ functions Pin
Laxman Auti13-Jun-06 18:46
Laxman Auti13-Jun-06 18:46 
AnswerRe: c++ functions Pin
_AnsHUMAN_ 13-Jun-06 18:48
_AnsHUMAN_ 13-Jun-06 18:48 
QuestionUsing Binary Data Directly in CPP Source Files Pin
JSadleir13-Jun-06 18:38
JSadleir13-Jun-06 18:38 
Hi Coders

If you have lots of data that you reference in an application (eg thousands of widget codes, prices and corresponding .bmp files), I gather it's possible to serialise/encode/write that data from ASCII into a binary file so that the data takes up much less space and can be accessed much more quickly by your application than if it is left in ASCII.

Assuming you (1) do not want the actual data to be changed or added to after compilation by end users, but (2) you want your application to be able to quickly and efficiently reference individual items in the binary file, what do you think is the best way to include the binary file in a native Visual C++ Project?

Is it possible to embed the binary file in the native Visual C++ project so that it in the application's core exe/dll without a separate external bin file? Could I do this with a cpp, lib or resource item that contains all the binary data?

Any thoughts or suggestions would be much appreciated.

Regards

Jeremy

AnswerRe: Using Binary Data Directly in CPP Source Files Pin
Stephen Hewitt14-Jun-06 20:44
Stephen Hewitt14-Jun-06 20:44 
GeneralRe: Using Binary Data Directly in CPP Source Files Pin
JSadleir18-Jun-06 15:52
JSadleir18-Jun-06 15:52 
QuestionHow to verify a pointer is valid? [modified] Pin
flyingxu13-Jun-06 17:25
flyingxu13-Jun-06 17:25 
AnswerRe: How to verify a pointer is valid? Pin
Sarath C13-Jun-06 17:43
Sarath C13-Jun-06 17:43 
GeneralRe: How to verify a pointer is valid? [modified] Pin
Stephen Hewitt13-Jun-06 18:09
Stephen Hewitt13-Jun-06 18:09 
AnswerRe: How to verify a pointer is valid? [modified] Pin
Nibu babu thomas13-Jun-06 17:55
Nibu babu thomas13-Jun-06 17:55 
AnswerRe: How to verify a pointer is valid? Pin
grigsoft13-Jun-06 18:09
grigsoft13-Jun-06 18:09 
AnswerRe: How to verify a pointer is valid? Pin
Ganesh_T13-Jun-06 18:37
Ganesh_T13-Jun-06 18:37 
AnswerRe: How to verify a pointer is valid? Pin
Laxman Auti13-Jun-06 18:49
Laxman Auti13-Jun-06 18:49 
AnswerRe: How to verify a pointer is valid? Pin
Tim Paaschen13-Jun-06 19:35
Tim Paaschen13-Jun-06 19:35 
Questiongraphical error Pin
anmol m13-Jun-06 17:12
anmol m13-Jun-06 17:12 
AnswerRe: graphical error Pin
Ganesh_T13-Jun-06 18:40
Ganesh_T13-Jun-06 18:40 
AnswerRe: graphical error Pin
Laxman Auti13-Jun-06 18:45
Laxman Auti13-Jun-06 18:45 
AnswerRe: graphical error Pin
khan++13-Jun-06 18:46
khan++13-Jun-06 18:46 
GeneralRe: graphical error Pin
anmol m15-Jun-06 7:11
anmol m15-Jun-06 7:11 
GeneralRe: graphical error Pin
khan++15-Jun-06 21:12
khan++15-Jun-06 21:12 
QuestionA newb needs help. Pin
zach713-Jun-06 16:01
zach713-Jun-06 16:01 

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.