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

C / C++ / MFC

 
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 
GeneralRe: Embedding data in exe's Pin
Xzyx987X8-Jul-05 17:07
Xzyx987X8-Jul-05 17:07 
>The minute you depend upon a specific linker option to do something like this, your code become platform dependent.

Well, compiling and linking is always a platform dependant proccess isn't it? The issue here is the ease in which you can get an app set up to build on different platforms. Right now all I really concerned about is that all my C code is platform independant. If it's a little tricky to build so be it, I'll cross that bridge when I come to it.

>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.

That depends. If the app I used was also platform independant, then it wouldn't be a problem.

>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.

A little messy, but not a bad idea. I'll take it into consideration if I can't find a way to do it the way I wanted. I was thinking I might see if there was a way to rig it up with NASM, but of course then I'm becoming CPU dependant. That isn't actually a real problem at the moment, but it could come back to haunt me later. Hmm... am I the only one who thinks that C needs a standard directive for embedding a data file into a compiled program?
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 
GeneralRe: to IE programmers Pin
ThatsAlok8-Jul-05 21:21
ThatsAlok8-Jul-05 21: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.