Click here to Skip to main content
15,901,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUnable to create an automation project using MFC and a type library Pin
milltooth4-Feb-07 5:35
milltooth4-Feb-07 5:35 
QuestionGlobal variables [modified] Pin
Makakuin4-Feb-07 5:05
Makakuin4-Feb-07 5:05 
AnswerRe: Global variables Pin
Waldermort4-Feb-07 6:20
Waldermort4-Feb-07 6:20 
AnswerRe: Global variables Pin
ThatsAlok6-Feb-07 20:19
ThatsAlok6-Feb-07 20:19 
QuestionSaving with property sheet Pin
DanYELL4-Feb-07 4:53
DanYELL4-Feb-07 4:53 
AnswerRe: Saving with property sheet Pin
Mark Salsbery4-Feb-07 9:04
Mark Salsbery4-Feb-07 9:04 
Questionmotion detection Pin
ceejeeb4-Feb-07 3:54
ceejeeb4-Feb-07 3:54 
AnswerRe: motion detection Pin
Waldermort4-Feb-07 6:25
Waldermort4-Feb-07 6:25 
You don't need to compare each pixel.

Depending on the size of the images ( lets say 640, 480 for example ), build an array of points each indexing a point in the image ( every 50 pixels maybe ). Then in your loop, only call GetPixel() for those points. If 30% of them changed since the last time, you have detected movement.
GeneralRe: motion detection Pin
ceejeeb5-Feb-07 1:57
ceejeeb5-Feb-07 1:57 
QuestionGetDlgItemText getting a float Pin
Johpoke4-Feb-07 3:19
Johpoke4-Feb-07 3:19 
AnswerRe: GetDlgItemText getting a float Pin
Waldermort4-Feb-07 6:31
Waldermort4-Feb-07 6:31 
AnswerRe: GetDlgItemText getting a float (SOLVED) Pin
Johpoke4-Feb-07 7:29
Johpoke4-Feb-07 7:29 
AnswerRe: GetDlgItemText getting a float Pin
Hamid_RT4-Feb-07 7:35
Hamid_RT4-Feb-07 7:35 
AnswerRe: GetDlgItemText getting a float Pin
ThatsAlok6-Feb-07 20:19
ThatsAlok6-Feb-07 20:19 
QuestionLocking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 2:35
Sara_fjr4-Feb-07 2:35 
AnswerRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Mark Salsbery4-Feb-07 9:12
Mark Salsbery4-Feb-07 9:12 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Waldermort4-Feb-07 9:23
Waldermort4-Feb-07 9:23 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 10:32
Sara_fjr4-Feb-07 10:32 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Waldermort4-Feb-07 11:26
Waldermort4-Feb-07 11:26 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 11:44
Sara_fjr4-Feb-07 11:44 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Mark Salsbery4-Feb-07 11:54
Mark Salsbery4-Feb-07 11:54 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 12:12
Sara_fjr4-Feb-07 12:12 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Mark Salsbery4-Feb-07 12:22
Mark Salsbery4-Feb-07 12:22 
GeneralRe: Locking keyboard and mouse of a computer in the same LAN using C++ or Java Pin
Sara_fjr4-Feb-07 12:44
Sara_fjr4-Feb-07 12:44 
QuestionReadDirectoryChangesW() in threads [modified] Pin
Klempie4-Feb-07 2:31
Klempie4-Feb-07 2:31 

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.