Click here to Skip to main content
15,908,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCAsyncSocket in CWinThread Pin
Mustapha Rédouane24-Dec-08 23:06
Mustapha Rédouane24-Dec-08 23:06 
AnswerRe: CAsyncSocket in CWinThread Pin
Mark Salsbery25-Dec-08 6:57
Mark Salsbery25-Dec-08 6:57 
GeneralRe: CAsyncSocket in CWinThread Pin
Mustapha Rédouane25-Dec-08 23:33
Mustapha Rédouane25-Dec-08 23:33 
GeneralRe: CAsyncSocket in CWinThread Pin
Richard Andrew x6426-Dec-08 0:48
professionalRichard Andrew x6426-Dec-08 0:48 
Questionfetching data from sql server using c++ ?? Pin
debonair12345624-Dec-08 21:56
debonair12345624-Dec-08 21:56 
QuestionRe: fetching data from sql server using c++ ?? Pin
CPallini24-Dec-08 22:53
mveCPallini24-Dec-08 22:53 
AnswerRe: fetching data from sql server using c++ ?? Pin
Mark Salsbery25-Dec-08 7:00
Mark Salsbery25-Dec-08 7:00 
QuestionProblem about sending messages to the program runs on another desktop? [modified] Pin
kcynic24-Dec-08 19:13
kcynic24-Dec-08 19:13 
I create a process on another desktop using CreateProcess by providing another desktop information.
All the things go well. Then, i want to send some message to it.
But the problem is, if i send quit message to it, it get the message successfully, but if i use GetMenu to get its meneu and then get submenu, and send menu message to it, it gets nothing. But if i just send a WM_QUIT message to it, it gets it because the process will quit as excepted. I mean, GetMenu function would fail if the process runs on another virtual desktop

Im sure i got the window handle successfully and had called SetThreadDesktop to make my program can post messages to the process runs on another desktop.why?

Merry Christmas.

modified on Thursday, December 25, 2008 1:25 AM

AnswerRe: Problem about sending messages to the program runs on another desktop? Pin
Richard Andrew x6425-Dec-08 8:13
professionalRichard Andrew x6425-Dec-08 8:13 
GeneralRe: Problem about sending messages to the program runs on another desktop? Pin
kcynic25-Dec-08 14:07
kcynic25-Dec-08 14:07 
GeneralRe: Problem about sending messages to the program runs on another desktop? Pin
Richard Andrew x6425-Dec-08 14:52
professionalRichard Andrew x6425-Dec-08 14:52 
GeneralRe: Problem about sending messages to the program runs on another desktop? Pin
kcynic25-Dec-08 14:58
kcynic25-Dec-08 14:58 
QuestionXMLHttpRequestPtr creation failed in thread? Pin
ritz123424-Dec-08 19:11
ritz123424-Dec-08 19:11 
AnswerRe: XMLHttpRequestPtr creation failed in thread? Pin
Code-o-mat25-Dec-08 11:37
Code-o-mat25-Dec-08 11:37 
QuestionCheck if HWND is @ top of Z order Pin
Ravi Bhavnani24-Dec-08 18:41
professionalRavi Bhavnani24-Dec-08 18:41 
AnswerRe: Check if HWND is @ top of Z order Pin
SandipG 24-Dec-08 20:00
SandipG 24-Dec-08 20:00 
GeneralRe: Check if HWND is @ top of Z order Pin
Ravi Bhavnani25-Dec-08 5:54
professionalRavi Bhavnani25-Dec-08 5:54 
GeneralRe: Check if HWND is @ top of Z order Pin
SandipG 25-Dec-08 19:36
SandipG 25-Dec-08 19:36 
GeneralRe: Check if HWND is @ top of Z order Pin
Ravi Bhavnani26-Dec-08 9:55
professionalRavi Bhavnani26-Dec-08 9:55 
AnswerRe: Check if HWND is @ top of Z order Pin
Mark Salsbery25-Dec-08 7:07
Mark Salsbery25-Dec-08 7:07 
GeneralRe: Check if HWND is @ top of Z order Pin
Ravi Bhavnani25-Dec-08 7:13
professionalRavi Bhavnani25-Dec-08 7:13 
AnswerRe: Check if HWND is @ top of Z order Pin
Code-o-mat25-Dec-08 10:07
Code-o-mat25-Dec-08 10:07 
GeneralRe: Check if HWND is @ top of Z order Pin
Ravi Bhavnani25-Dec-08 10:56
professionalRavi Bhavnani25-Dec-08 10:56 
GeneralRe: Check if HWND is @ top of Z order Pin
Code-o-mat25-Dec-08 11:31
Code-o-mat25-Dec-08 11:31 
GeneralRe: Check if HWND is @ top of Z order Pin
Ravi Bhavnani25-Dec-08 12:29
professionalRavi Bhavnani25-Dec-08 12:29 

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.