Click here to Skip to main content
15,905,971 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: search order of DOS execution Pin
includeh107-Apr-05 7:20
includeh107-Apr-05 7:20 
GeneralRe: search order of DOS execution Pin
David Crow7-Apr-05 7:57
David Crow7-Apr-05 7:57 
GeneralRe: search order of DOS execution Pin
includeh107-Apr-05 17:42
includeh107-Apr-05 17:42 
QuestionHow do you execute a file in memory, is it even possible... Pin
Jabish7-Apr-05 6:08
Jabish7-Apr-05 6:08 
AnswerRe: How do you execute a file in memory, is it even possible... Pin
David Crow7-Apr-05 6:55
David Crow7-Apr-05 6:55 
AnswerRe: How do you execute a file in memory, is it even possible... Pin
Michael Dunn7-Apr-05 7:19
sitebuilderMichael Dunn7-Apr-05 7:19 
GeneralRe: How do you execute a file in memory, is it even possible... Pin
LighthouseJ7-Apr-05 12:45
LighthouseJ7-Apr-05 12:45 
GeneralThank You... Pin
Jabish7-Apr-05 13:21
Jabish7-Apr-05 13:21 
Thank (all of you)... Just got back on so sorry i diddn't thank all of you earler.

Just wondering about the "PE file format" is it that PE projector thing?

also do I have to use any special way of reading the file to a buffer, or can I do it the way I always do:
<br />
FILE *in;<br />
<br />
long size;<br />
char *Buffer;<br />
<br />
if(in = fopen("[blah]", "rb"))<br />
 {<br />
  fseek(in, 0, SEEK_END);<br />
   size = ftell(in);<br />
   Buffer = (char *) malloc(size);<br />
  fseek(in, 0, SEEK_SET);<br />
<br />
   fread(Buffer, 1, size, in);<br />
<br />
  fclose(in);<br />
 }<br />

----------
and then do the PE thing, or do i need to use ReadFile() or something...

If possible a specific code example would be appreicated, (haven't tried anything like this before) just a little confused.

PS:

wasn't planning on using this idea for a child window type deal... I was thinking more on the line of something like:

a patcher like there is before you log on to a game, after the patcher got it's files it could unpack and execute parts of the game, or the game could just unpack the patcher... that kind of thing. I don't actually NEED this, am just curious about it. Thanks again =8^)... please don't steal face... Sniff | :^)
GeneralRe: Thank You... Pin
David Crow7-Apr-05 16:31
David Crow7-Apr-05 16:31 
QuestionAfxBeginThread() ??????????? Pin
Static(x)7-Apr-05 5:43
Static(x)7-Apr-05 5:43 
AnswerRe: AfxBeginThread() ??????????? Pin
David Crow7-Apr-05 6:54
David Crow7-Apr-05 6:54 
AnswerRe: AfxBeginThread() ??????????? Pin
Joel Holdsworth7-Apr-05 6:57
Joel Holdsworth7-Apr-05 6:57 
GeneralRe: AfxBeginThread() ??????????? Pin
Static(x)7-Apr-05 7:54
Static(x)7-Apr-05 7:54 
AnswerRe: AfxBeginThread() ??????????? Pin
LighthouseJ7-Apr-05 16:04
LighthouseJ7-Apr-05 16:04 
GeneralVC++.Net - Debugging XLL Pin
JSadleir7-Apr-05 3:20
JSadleir7-Apr-05 3:20 
QuestionHow does the process create threads? Pin
binh.pham7-Apr-05 3:20
binh.pham7-Apr-05 3:20 
AnswerRe: How does the process create threads? Pin
toxcct7-Apr-05 3:33
toxcct7-Apr-05 3:33 
AnswerRe: How does the process create threads? Pin
David Crow7-Apr-05 4:46
David Crow7-Apr-05 4:46 
GeneralRe: How does the process create threads? Pin
Alexander M.,7-Apr-05 4:54
Alexander M.,7-Apr-05 4:54 
GeneralRe: How does the process create threads? Pin
David Crow7-Apr-05 4:57
David Crow7-Apr-05 4:57 
GeneralProblem adding a user control in my application Pin
a7corsair7-Apr-05 3:10
a7corsair7-Apr-05 3:10 
Generalproblem with singleton as lib Pin
javatheist7-Apr-05 2:42
javatheist7-Apr-05 2:42 
GeneralRe: problem with singleton as lib Pin
Blake Miller7-Apr-05 4:21
Blake Miller7-Apr-05 4:21 
GeneralBitmap 'editing' Pin
mcsherry7-Apr-05 2:26
mcsherry7-Apr-05 2:26 
GeneralRe: Bitmap 'editing' Pin
David Crow7-Apr-05 2:28
David Crow7-Apr-05 2:28 

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.