Click here to Skip to main content
15,889,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionchanging the mouse cursor when moved Pin
brucewayn5-May-09 1:50
brucewayn5-May-09 1:50 
AnswerRe: changing the mouse cursor when moved Pin
_AnsHUMAN_ 5-May-09 1:53
_AnsHUMAN_ 5-May-09 1:53 
AnswerRe: changing the mouse cursor when moved Pin
Stuart Dootson5-May-09 3:19
professionalStuart Dootson5-May-09 3:19 
QuestionEnvironment variable Pin
Padmanabha_M5-May-09 1:47
Padmanabha_M5-May-09 1:47 
AnswerRe: Environment variable Pin
Rajesh R Subramanian5-May-09 1:51
professionalRajesh R Subramanian5-May-09 1:51 
AnswerRe: Environment variable Pin
Jack200955-May-09 2:28
Jack200955-May-09 2:28 
AnswerRe: Environment variable Pin
Stuart Dootson5-May-09 3:16
professionalStuart Dootson5-May-09 3:16 
QuestionChoosing an IPC mechanism Pin
Rajesh R Subramanian5-May-09 1:46
professionalRajesh R Subramanian5-May-09 1:46 
I have a console application with no MFC support (I cannot add MFC support due to several reasons). This console executes another process and the new process does a very lengthy operation (I cannot use a thread within the console to do the lengthy operation, as is performed by a third party library that the app links to, which cannot work in console mode). The console app must be notified of the progress of this lengthy operation periodically. Now, when I thought of how to notify the console, I cannot do a PostMessage (there's no window handle), I cannot do a PostThreadMessage (the primary thread does not have a message queue). Therefore, I am considering the following options:

1. Use a named pipe. The console creates the pipe and uses CreateProcess to spawn the other executable, passing the pipe handle while spawning it. The executable write into the pipe and the console reads.
2. Use Overlapped IO
3. Any other suggestions (No, code injection or CreateRemoteThread is not an option that I will consider).

I have the source code of both the applications, but I don't want to do a lot of changes in the console app (thousands of lines, OLD stuff, no docs). However, I'm open to be convinced to do that as well. Thank you!


It is a crappy thing, but it's life -^ Carlo Pallini

AnswerRe: Choosing an IPC mechanism Pin
ParagPatel5-May-09 2:18
ParagPatel5-May-09 2:18 
GeneralRe: Choosing an IPC mechanism Pin
Rajesh R Subramanian5-May-09 2:28
professionalRajesh R Subramanian5-May-09 2:28 
AnswerRe: Choosing an IPC mechanism Pin
Stuart Dootson5-May-09 3:10
professionalStuart Dootson5-May-09 3:10 
GeneralRe: Choosing an IPC mechanism Pin
Rajesh R Subramanian5-May-09 4:08
professionalRajesh R Subramanian5-May-09 4:08 
AnswerRe: Choosing an IPC mechanism Pin
Randor 5-May-09 6:54
professional Randor 5-May-09 6:54 
GeneralRe: Choosing an IPC mechanism Pin
Rajesh R Subramanian6-May-09 1:34
professionalRajesh R Subramanian6-May-09 1:34 
QuestionDLL performance during the day? Pin
Chesnokov Yuriy5-May-09 0:40
professionalChesnokov Yuriy5-May-09 0:40 
AnswerRe: DLL performance during the day? Pin
CPallini5-May-09 1:45
mveCPallini5-May-09 1:45 
JokeRe: DLL performance during the day? Pin
Rajesh R Subramanian5-May-09 1:54
professionalRajesh R Subramanian5-May-09 1:54 
GeneralRe: DLL performance during the day? Pin
CPallini5-May-09 2:27
mveCPallini5-May-09 2:27 
AnswerRe: DLL performance during the day? Pin
Randor 5-May-09 5:36
professional Randor 5-May-09 5:36 
QuestionCleint Server - Connection refused. Pin
ganesh.dp4-May-09 23:27
ganesh.dp4-May-09 23:27 
QuestionMFC Pin
p_19604-May-09 23:17
p_19604-May-09 23:17 
AnswerRe: MFC Pin
Rajesh R Subramanian4-May-09 23:20
professionalRajesh R Subramanian4-May-09 23:20 
GeneralRe: MFC Pin
p_19604-May-09 23:32
p_19604-May-09 23:32 
GeneralRe: MFC Pin
Rajesh R Subramanian4-May-09 23:36
professionalRajesh R Subramanian4-May-09 23:36 
AnswerRe: MFC Pin
Chandrasekharan P4-May-09 23:23
Chandrasekharan P4-May-09 23:23 

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.