Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRun an exe from MFC app Pin
koumodaki30-Jul-07 4:09
koumodaki30-Jul-07 4:09 
AnswerRe: Run an exe from MFC app Pin
Iain Clarke, Warrior Programmer30-Jul-07 4:16
Iain Clarke, Warrior Programmer30-Jul-07 4:16 
AnswerRe: Run an exe from MFC app Pin
Roberto Italy30-Jul-07 21:12
Roberto Italy30-Jul-07 21:12 
AnswerRe: Run an exe from MFC app Pin
Hamid_RT31-Jul-07 21:14
Hamid_RT31-Jul-07 21:14 
Questionpost thread message() Pin
shakumar_2230-Jul-07 3:59
shakumar_2230-Jul-07 3:59 
AnswerRe: post thread message() Pin
Iain Clarke, Warrior Programmer30-Jul-07 4:20
Iain Clarke, Warrior Programmer30-Jul-07 4:20 
GeneralRe: post thread message() Pin
shakumar_2230-Jul-07 4:38
shakumar_2230-Jul-07 4:38 
GeneralRe: post thread message() Pin
Iain Clarke, Warrior Programmer30-Jul-07 5:06
Iain Clarke, Warrior Programmer30-Jul-07 5:06 
1/ Did you bother trying? If so, you'd have found out the answer which is:

2/ No, and it will hopefully give you an error message when compiling.

What I would do next is to go a bit simpler, and post:

PostThreadMessage (WM_USER + 100, 1234, 5678);


and see if the thread message bit is working properly. If they are, then see what the value of p_str is before you post it, and when it is received. And so on. If that is OK, use the Memory tool of the debugger to see the contents pointed to by p_str.

One thought that occurs to me:

p_str points to a valid bit of memory when you post it. Does it still point to a valid bit later? (ie when the message is received). Is it possible that the CStrings destructor has been called, and the memory is now filled with junk?

Iain.
QuestionHow to put an MFC Dialog box project into another existing project Pin
vladimir7230-Jul-07 2:29
vladimir7230-Jul-07 2:29 
AnswerRe: How to put an MFC Dialog box project into another existing project Pin
Nelek30-Jul-07 2:40
protectorNelek30-Jul-07 2:40 
GeneralRe: How to put an MFC Dialog box project into another existing project Pin
vladimir7230-Jul-07 2:51
vladimir7230-Jul-07 2:51 
GeneralRe: How to put an MFC Dialog box project into another existing project Pin
Hans Dietrich30-Jul-07 3:12
mentorHans Dietrich30-Jul-07 3:12 
AnswerRe: How to put an MFC Dialog box project into another existing project Pin
vladimir7230-Jul-07 3:58
vladimir7230-Jul-07 3:58 
GeneralRe: How to put an MFC Dialog box project into another existing project Pin
Nelek30-Jul-07 20:23
protectorNelek30-Jul-07 20:23 
Questionre: Fast Searching... Pin
Bryster30-Jul-07 1:54
Bryster30-Jul-07 1:54 
AnswerRe: re: Fast Searching... Pin
Randor 30-Jul-07 1:58
professional Randor 30-Jul-07 1:58 
GeneralRe: re: Fast Searching... Pin
Bryster30-Jul-07 2:25
Bryster30-Jul-07 2:25 
AnswerRe: re: Fast Searching... Pin
Hans Dietrich30-Jul-07 3:17
mentorHans Dietrich30-Jul-07 3:17 
GeneralRe: re: Fast Searching... Pin
Bryster30-Jul-07 4:12
Bryster30-Jul-07 4:12 
Questionre: Problems with Progress Bar Pin
Bryster30-Jul-07 1:25
Bryster30-Jul-07 1:25 
AnswerRe: re: Problems with Progress Bar Pin
Hans Dietrich30-Jul-07 3:21
mentorHans Dietrich30-Jul-07 3:21 
GeneralRe: re: Problems with Progress Bar Pin
Bryster30-Jul-07 4:24
Bryster30-Jul-07 4:24 
AnswerRe: re: Problems with Progress Bar Pin
krmed30-Jul-07 4:53
krmed30-Jul-07 4:53 
QuestionRe: re: Problems with Progress Bar Pin
Mark Salsbery30-Jul-07 6:20
Mark Salsbery30-Jul-07 6:20 
Questioncan not delete a file Pin
George_George30-Jul-07 0:13
George_George30-Jul-07 0:13 

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.