Click here to Skip to main content
15,916,412 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: map keystroke to a string in wordpad application Pin
kristna1-Apr-05 8:53
kristna1-Apr-05 8:53 
GeneralHooking CoCreateInstance / CoGetClassObject Pin
peterchen29-Mar-05 5:06
peterchen29-Mar-05 5:06 
GeneralRe: Hooking CoCreateInstance / CoGetClassObject Pin
Michael Dunn29-Mar-05 5:35
sitebuilderMichael Dunn29-Mar-05 5:35 
GeneralRe: Hooking CoCreateInstance / CoGetClassObject Pin
Joel Lucsy29-Mar-05 13:03
Joel Lucsy29-Mar-05 13:03 
QuestionHow to compare two images using cximage Pin
Madhurya29-Mar-05 4:54
Madhurya29-Mar-05 4:54 
AnswerRe: How to compare two images using cximage Pin
Ted Ferenc29-Mar-05 5:23
Ted Ferenc29-Mar-05 5:23 
AnswerRe: How to compare two images using cximage Pin
Chris Losinger29-Mar-05 10:01
professionalChris Losinger29-Mar-05 10:01 
AnswerRe: How to compare two images using cximage Pin
John R. Shaw30-Mar-05 9:09
John R. Shaw30-Mar-05 9:09 
If you just need to know if they are exactly the same or not then you might try this:

if( img1.GetSize() == img2.GetSize() )
{
    if( memcmp(img1.GetDib(),img2.GetDib(),img1.GetSize()) )
        // not the same
    else
        // the same
}


Or you could just use the GetPixelColor() function to read the individule pixels one at a time, and compare them by calling CompareColors(). That would allow you to know exactly what pixels are different.

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
Generalproblem with MFC DLL Pin
eli1502197929-Mar-05 3:47
eli1502197929-Mar-05 3:47 
GeneralRe: problem with MFC DLL Pin
Blake Miller29-Mar-05 5:27
Blake Miller29-Mar-05 5:27 
GeneralRe: problem with MFC DLL Pin
eli150219791-Apr-05 0:05
eli150219791-Apr-05 0:05 
GeneralRe: problem with MFC DLL Pin
Blake Miller1-Apr-05 4:09
Blake Miller1-Apr-05 4:09 
GeneralHELP!!! Pin
shulflem29-Mar-05 3:46
shulflem29-Mar-05 3:46 
GeneralRe: HELP!!! Pin
Alexander M.,29-Mar-05 5:37
Alexander M.,29-Mar-05 5:37 
GeneralRe: HELP!!! Pin
ThatsAlok29-Mar-05 17:59
ThatsAlok29-Mar-05 17:59 
GeneralRe: HELP!!! Pin
ThatsAlok29-Mar-05 18:04
ThatsAlok29-Mar-05 18:04 
GeneralHELP!!! Pin
Anonymous29-Mar-05 3:45
Anonymous29-Mar-05 3:45 
GeneralCMSHFlexGrid How Move .... Pin
ivax29-Mar-05 2:28
ivax29-Mar-05 2:28 
GeneralUser Password Pin
Anonymous29-Mar-05 1:44
Anonymous29-Mar-05 1:44 
GeneralRe: User Password Pin
bosfan29-Mar-05 1:49
bosfan29-Mar-05 1:49 
GeneralRe: User Password Pin
Blake Miller29-Mar-05 5:30
Blake Miller29-Mar-05 5:30 
GeneralRe: User Password Pin
Michael Dunn29-Mar-05 5:40
sitebuilderMichael Dunn29-Mar-05 5:40 
GeneralRe: User Password Pin
bosfan29-Mar-05 20:06
bosfan29-Mar-05 20:06 
GeneralRe: User Password Pin
deldeep29-Mar-05 20:41
deldeep29-Mar-05 20:41 
GeneralRe: User Password Pin
bosfan30-Mar-05 1:05
bosfan30-Mar-05 1:05 

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.