Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Querry. Pin
«_Superman_»29-Jun-09 0:57
professional«_Superman_»29-Jun-09 0:57 
GeneralRe: Querry. Pin
Rajesh R Subramanian29-Jun-09 1:28
professionalRajesh R Subramanian29-Jun-09 1:28 
GeneralRe: Querry. [modified] Pin
chandu00429-Jun-09 1:34
chandu00429-Jun-09 1:34 
AnswerRe: Querry. Pin
Rajesh R Subramanian29-Jun-09 1:03
professionalRajesh R Subramanian29-Jun-09 1:03 
QuestionApplication freeze Pin
susanne129-Jun-09 0:27
susanne129-Jun-09 0:27 
QuestionRe: Application freeze Pin
«_Superman_»29-Jun-09 0:32
professional«_Superman_»29-Jun-09 0:32 
AnswerRe: Application freeze Pin
susanne129-Jun-09 0:36
susanne129-Jun-09 0:36 
AnswerRe: Application freeze Pin
Rajesh R Subramanian29-Jun-09 0:38
professionalRajesh R Subramanian29-Jun-09 0:38 
susanne1 wrote:
LPMSG *pmsg = NULL;


What is the purpose of this pointer variable? You aren't using it anywhere in your code. Not to mention LPMSG is already a pointer to a MSG structure. Hmmm | :|

void Func()
{
CString szOutput;
MSG msg;

for(int i=0; i<3000; i++)
{
  PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); //You must use PM_NOREMOVE if you want the message to remain in the queue.
  szOutput.Format(_T("%d"), i);
  OutputDebugString(szOutput);
}


Why would you do something like this? Are you trying to understand how PeekMessage works or ... ?


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

GeneralRe: Application freeze Pin
susanne129-Jun-09 0:52
susanne129-Jun-09 0:52 
GeneralRe: Application freeze Pin
Rajesh R Subramanian29-Jun-09 0:58
professionalRajesh R Subramanian29-Jun-09 0:58 
GeneralRe: Application freeze Pin
susanne129-Jun-09 1:45
susanne129-Jun-09 1:45 
GeneralRe: Application freeze Pin
Rajesh R Subramanian29-Jun-09 1:52
professionalRajesh R Subramanian29-Jun-09 1:52 
AnswerRe: Application freeze Pin
Michael Thärigen12-Sep-09 22:54
Michael Thärigen12-Sep-09 22:54 
Questiontimer start problem Pin
susanne129-Jun-09 0:25
susanne129-Jun-09 0:25 
AnswerRe: timer start problem Pin
«_Superman_»29-Jun-09 0:35
professional«_Superman_»29-Jun-09 0:35 
GeneralRe: timer start problem Pin
susanne129-Jun-09 0:57
susanne129-Jun-09 0:57 
AnswerRe: timer start problem Pin
Stuart Dootson29-Jun-09 0:39
professionalStuart Dootson29-Jun-09 0:39 
GeneralRe: timer start problem Pin
susanne129-Jun-09 1:15
susanne129-Jun-09 1:15 
GeneralRe: timer start problem Pin
Chandrasekharan P29-Jun-09 1:57
Chandrasekharan P29-Jun-09 1:57 
GeneralRe: timer start problem Pin
Stuart Dootson29-Jun-09 2:39
professionalStuart Dootson29-Jun-09 2:39 
QuestionCreateFile related Pin
ashish8patil29-Jun-09 0:07
ashish8patil29-Jun-09 0:07 
AnswerRe: CreateFile related Pin
Cedric Moonen29-Jun-09 0:16
Cedric Moonen29-Jun-09 0:16 
GeneralRe: CreateFile related Pin
ashish8patil29-Jun-09 0:23
ashish8patil29-Jun-09 0:23 
AnswerRe: CreateFile related Pin
«_Superman_»29-Jun-09 0:18
professional«_Superman_»29-Jun-09 0:18 
GeneralRe: CreateFile related Pin
ashish8patil29-Jun-09 0:28
ashish8patil29-Jun-09 0: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.