Click here to Skip to main content
15,925,781 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIActiveScript return value from event function ? Pin
achainard18-Jun-07 1:22
achainard18-Jun-07 1:22 
AnswerRe: IActiveScript return value from event function ? Pin
James R. Twine18-Jun-07 1:58
James R. Twine18-Jun-07 1:58 
QuestionGetClusterResourceKey Pin
Yashusid18-Jun-07 1:10
Yashusid18-Jun-07 1:10 
AnswerRe: GetClusterResourceKey Pin
James R. Twine18-Jun-07 2:13
James R. Twine18-Jun-07 2:13 
QuestionLocking a dialog in place Pin
69 Bay18-Jun-07 1:04
69 Bay18-Jun-07 1:04 
AnswerRe: Locking a dialog in place Pin
Nelek18-Jun-07 1:17
protectorNelek18-Jun-07 1:17 
QuestionReading PDB/EXE files Pin
Berlus18-Jun-07 0:54
Berlus18-Jun-07 0:54 
AnswerRe: Reading PDB/EXE files Pin
James R. Twine18-Jun-07 1:15
James R. Twine18-Jun-07 1:15 
   I do not think that you can (at least not with the C/C++ implementations I am familiar with)...

   When you use #define, the pre-processor replaces the defined identifier with its value.  So, if you have the following:
// In The .H File...
#define   <code>THE_VALUE   42</code>
 
// In The .CPP File...
for( int iValue = 0; iValue < <code>THE_VALUE</code>; iValue++ )
{
    // Loop Body...
}
   Then you cannot scan the EXE file for THE_VALUE because the pre-processor will replace it with the constant value 42, so after the pre-processing phase, the C file actually looks more like this:
for( int iValue = 0; iValue < <big><code>42</code></big>; iValue++ )
{
    // Loop Body...
}
   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

GeneralRe: Reading PDB/EXE files Pin
Berlus18-Jun-07 2:14
Berlus18-Jun-07 2:14 
GeneralRe: Reading PDB/EXE files Pin
James R. Twine18-Jun-07 2:23
James R. Twine18-Jun-07 2:23 
Questioncursor for edit box? Pin
iayd18-Jun-07 0:09
iayd18-Jun-07 0:09 
AnswerRe: cursor for edit box? Pin
Naveen18-Jun-07 0:11
Naveen18-Jun-07 0:11 
AnswerRe: cursor for edit box? Pin
Mark Salsbery18-Jun-07 5:42
Mark Salsbery18-Jun-07 5:42 
QuestionHelp required on Kernel memory reading Pin
SelvaKr18-Jun-07 0:09
SelvaKr18-Jun-07 0:09 
AnswerRe: Help required on Kernel memory reading Pin
Randor 18-Jun-07 3:57
professional Randor 18-Jun-07 3:57 
GeneralRe: Help required on Kernel memory reading Pin
SelvaKr19-Jun-07 19:32
SelvaKr19-Jun-07 19:32 
QuestionHow to inject parameters to my application? Pin
eli1502197918-Jun-07 0:08
eli1502197918-Jun-07 0:08 
AnswerRe: How to inject parameters to my application? Pin
Nibu babu thomas18-Jun-07 0:54
Nibu babu thomas18-Jun-07 0:54 
GeneralRe: How to inject parameters to my application? Pin
eli1502197918-Jun-07 3:59
eli1502197918-Jun-07 3:59 
Questionplease help on this doc Pin
p_17-Jun-07 22:54
p_17-Jun-07 22:54 
AnswerRe: please help on this doc Pin
baerten18-Jun-07 1:29
baerten18-Jun-07 1:29 
QuestionText-to-Speech Software Pin
Abdul8517-Jun-07 22:09
Abdul8517-Jun-07 22:09 
AnswerRe: Text-to-Speech Software Pin
Sebastian Schneider18-Jun-07 0:58
Sebastian Schneider18-Jun-07 0:58 
GeneralRe: Text-to-Speech Software Pin
Abdul8518-Jun-07 19:52
Abdul8518-Jun-07 19:52 
QuestionHelp! Pin
josip cagalj17-Jun-07 22:04
josip cagalj17-Jun-07 22:04 

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.