Click here to Skip to main content
15,913,361 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCRichEditCtrl Pin
John R. Shaw8-Jul-05 15:23
John R. Shaw8-Jul-05 15:23 
GeneralRe: CRichEditCtrl Pin
Blake V. Miller8-Jul-05 17:19
Blake V. Miller8-Jul-05 17:19 
GeneralRe: CRichEditCtrl Pin
John R. Shaw8-Jul-05 18:13
John R. Shaw8-Jul-05 18:13 
GeneralRe: CRichEditCtrl Pin
Jose Lamas Rios9-Jul-05 17:40
Jose Lamas Rios9-Jul-05 17:40 
GeneralEmbedding data in exe's Pin
Xzyx987X8-Jul-05 15:20
Xzyx987X8-Jul-05 15:20 
GeneralRe: Embedding data in exe's Pin
John R. Shaw8-Jul-05 15:29
John R. Shaw8-Jul-05 15:29 
GeneralRe: Embedding data in exe's Pin
Xzyx987X8-Jul-05 16:14
Xzyx987X8-Jul-05 16:14 
GeneralRe: Embedding data in exe's Pin
John R. Shaw8-Jul-05 16:46
John R. Shaw8-Jul-05 16:46 
The minute you depend upon a specific linker option to do something like this, your code become platform dependent.

I don't know if there is a command line app does what your asking. If there is and you use it, then you're again, making your code platform dependent.

Here's how I to do it, when I needed to import such data files into my code:
1) Write a small program that takes my data file type and generates a file that contains an array in C/C++ code, that contains the data.
2) Include the generated file in the project.

That's all there is to it. Now the name of the array is a pointer to your imported data.

Good Luck!

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralRe: Embedding data in exe's Pin
Xzyx987X8-Jul-05 17:07
Xzyx987X8-Jul-05 17:07 
GeneralRe: Embedding data in exe's Pin
John R. Shaw8-Jul-05 18:33
John R. Shaw8-Jul-05 18:33 
GeneralRe: Embedding data in exe's Pin
David Crow8-Jul-05 16:36
David Crow8-Jul-05 16:36 
GeneralRe: Embedding data in exe's Pin
Xzyx987X8-Jul-05 17:09
Xzyx987X8-Jul-05 17:09 
Generalhelp: C++ copy constructors Pin
heskel8-Jul-05 15:04
heskel8-Jul-05 15:04 
GeneralRe: help: C++ copy constructors Pin
John R. Shaw8-Jul-05 16:01
John R. Shaw8-Jul-05 16:01 
Generalhelp:update_command_ui Pin
happycpp8-Jul-05 13:33
happycpp8-Jul-05 13:33 
GeneralRe: help:update_command_ui Pin
Jose Lamas Rios10-Jul-05 18:07
Jose Lamas Rios10-Jul-05 18:07 
GeneralC++ Copy constructors Pin
heskel8-Jul-05 13:02
heskel8-Jul-05 13:02 
GeneralRe: C++ Copy constructors Pin
Kevin McFarlane8-Jul-05 13:07
Kevin McFarlane8-Jul-05 13:07 
GeneralRe: C++ Copy constructors Pin
heskel8-Jul-05 13:12
heskel8-Jul-05 13:12 
GeneralRe: C++ Copy constructors Pin
Nemanja Trifunovic8-Jul-05 14:06
Nemanja Trifunovic8-Jul-05 14:06 
Generalwin32 threads Pin
Ann668-Jul-05 12:20
sussAnn668-Jul-05 12:20 
GeneralRe: win32 threads Pin
Blake V. Miller8-Jul-05 16:29
Blake V. Miller8-Jul-05 16:29 
Generalto IE programmers Pin
llp00na8-Jul-05 8:08
llp00na8-Jul-05 8:08 
GeneralRe: to IE programmers Pin
Jose Lamas Rios8-Jul-05 10:47
Jose Lamas Rios8-Jul-05 10:47 
GeneralRe: to IE programmers Pin
Ravi Bhavnani8-Jul-05 11:40
professionalRavi Bhavnani8-Jul-05 11: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.