Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Unusual memory leak ( code attached ) Pin
CPallini14-Sep-08 4:09
mveCPallini14-Sep-08 4:09 
QuestionAfxOleInit called OleInitialize inside, but no AfxOleUninit Pin
followait13-Sep-08 17:32
followait13-Sep-08 17:32 
AnswerRe: AfxOleInit called OleInitialize inside, but no AfxOleUninit Pin
CPallini14-Sep-08 6:41
mveCPallini14-Sep-08 6:41 
Questionwarning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie13-Sep-08 16:04
FrankMookie13-Sep-08 16:04 
QuestionRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
Mark Salsbery13-Sep-08 16:11
Mark Salsbery13-Sep-08 16:11 
AnswerRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie13-Sep-08 16:14
FrankMookie13-Sep-08 16:14 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
bob1697214-Sep-08 8:06
bob1697214-Sep-08 8:06 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie14-Sep-08 8:09
FrankMookie14-Sep-08 8:09 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
bob1697214-Sep-08 10:25
bob1697214-Sep-08 10:25 
AnswerRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
CPallini13-Sep-08 21:04
mveCPallini13-Sep-08 21:04 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie14-Sep-08 7:48
FrankMookie14-Sep-08 7:48 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
CPallini14-Sep-08 8:19
mveCPallini14-Sep-08 8:19 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
FrankMookie14-Sep-08 10:44
FrankMookie14-Sep-08 10:44 
GeneralRe: warning C4244 ... conversion from 'int' to 'char', possible loss of data Pin
CPallini14-Sep-08 11:31
mveCPallini14-Sep-08 11:31 
QuestionA Question about AfxRegisterWndClass Pin
BobInNJ13-Sep-08 13:09
BobInNJ13-Sep-08 13:09 
AnswerRe: A Question about AfxRegisterWndClass Pin
Mark Salsbery13-Sep-08 15:55
Mark Salsbery13-Sep-08 15:55 
AnswerRe: A Question about AfxRegisterWndClass Pin
CPallini14-Sep-08 6:53
mveCPallini14-Sep-08 6:53 
QuestionWhy the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:04
Joseph Marzbani13-Sep-08 9:04 
AnswerRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 9:19
Mark Salsbery13-Sep-08 9:19 
NewsRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:26
Joseph Marzbani13-Sep-08 9:26 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 9:40
Mark Salsbery13-Sep-08 9:40 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:51
Joseph Marzbani13-Sep-08 9:51 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Perspx13-Sep-08 9:59
Perspx13-Sep-08 9:59 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 10:06
Joseph Marzbani13-Sep-08 10:06 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 10:17
Mark Salsbery13-Sep-08 10:17 
What kind of output do you get doing something like this
in the EXE:
MSG msg;
while(GetMessage(&msg, NULL, 0, 0))
{
    if (msg.message == WM_KEYDOWN || msg.message == WM_KEYUP)
    {
        if (msg.message == WM_KEYDOWN)
            TRACE0("WM_KEYDOWN  - ");
        else
            TRACE0("WM_KEYUP  - ");

        if (!TranslateMessage(&msg))
        {
            TRACE0("TranslateMessage() Failed!\n");
        }
        else
        {
            TRACE0("TranslateMessage() Succeeded!\n");
        }
    }

    if(msg.message == WM_CHAR || msg.message == WM_DEADCHAR || msg.message == WM_SYSCHAR ||
                              msg.message == WM_SYSDEADCHAR)
    {
        TRACE0("WM_CHAR!\n");
    }
}


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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.