Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using SetTimer Pin
David Crow17-Sep-04 9:37
David Crow17-Sep-04 9:37 
GeneralSuspendThread & TerminateThread Pin
Martijn van Kleef16-Sep-04 21:02
Martijn van Kleef16-Sep-04 21:02 
GeneralRe: SuspendThread & TerminateThread Pin
Neville Franks17-Sep-04 0:36
Neville Franks17-Sep-04 0:36 
GeneralCListCtrl-Multi-selection using SHIFT & arrow Key Pin
krishnakumar7516-Sep-04 20:49
krishnakumar7516-Sep-04 20:49 
GeneralRe: CListCtrl-Multi-selection using SHIFT & arrow Key Pin
Chris Richardson18-Sep-04 21:55
Chris Richardson18-Sep-04 21:55 
GeneralRe: CListCtrl-Multi-selection using SHIFT & arrow Key Pin
krishnakumar7520-Sep-04 18:05
krishnakumar7520-Sep-04 18:05 
QuestionError in ATL ( COM) DLL ??? Pin
zahid_ash16-Sep-04 20:03
zahid_ash16-Sep-04 20:03 
GeneralVisual C++ (MFC) : Using Matrix to set an part of an image to zero Pin
pohcb_sonic16-Sep-04 16:07
pohcb_sonic16-Sep-04 16:07 
I actually had previously used it to do console applications on Visual C++ but never used MFC before. I had a problem; I was told to set a 4 by 4 area by using Matrix in MFC coding and use it to check whether the image has any little "black spots". If it does, I have to set these small little "black spots" of the image from "255" or anything else to zero. The codings must be in a function.

So How do I do it?

Pls do kindly reply. I needed this asap. Thanks!

Below are the codes: (the codes have quite a bit of a problem...)

<br />
void CMediVisionView::MatrixImage()<br />
{<br />
int i;<br />
<br />
if(no_of_rows==512){<br />
for(i=0; i<512-5; i++)<br />
{<br />
if (image512[i]==0 && image512[i+1]==0 && image512[i+2]==0 && image512[i+3]==0 && image512[i+4]==0){<br />
<br />
if(image512[i]==0 && image512[i+512]==0 && image512[i+(512*2)]==0 && image512[i+(512*3)]==0){<br />
<br />
if(image512[i+4]==0 && image512[i+512+4]==0 && image512[i+(512*2)+4]==0 && image512[i+(512*3)+4]==0){<br />
<br />
if(image512[i+(512*3)+1]==0 && image512[i+(512*3)+2]==0 && image512[i+(512*3)+3]==0 && image512[i+(512*3)+4]==0){<br />
<br />
image512[i+512+1]=0;<br />
image512[i+(512*2)+1]=0;<br />
image512[i+(512*3)+1]=0;<br />
<br />
image512[i+512+2]=0;<br />
image512[i+(512*2)+2]=0;<br />
image512[i+(512*3)+2]=0;<br />
<br />
image512[i+512+3]=0;<br />
image512[i+(512*2)+3]=0;<br />
image512[i+(512*3)+3]=0;<br />
}<br />
<br />
}<br />
}<br />
<br />
}<br />
<br />
}<br />
}<br />
<br />
<br />
<br />
}<br />

Generalmsflexigrid Pin
persian_boi16-Sep-04 15:59
persian_boi16-Sep-04 15:59 
GeneralExample of IPC in VC++ .Net Pin
hatimad16-Sep-04 12:47
hatimad16-Sep-04 12:47 
GeneralMultiple Parallel Ports Pin
wicked_guy16-Sep-04 11:58
wicked_guy16-Sep-04 11:58 
GeneralRe: Multiple Parallel Ports Pin
Christian Graus16-Sep-04 15:58
protectorChristian Graus16-Sep-04 15:58 
GeneralRe: Multiple Parallel Ports Pin
wicked_guy16-Sep-04 21:46
wicked_guy16-Sep-04 21:46 
GeneralRe: Multiple Parallel Ports Pin
Christian Graus19-Sep-04 11:04
protectorChristian Graus19-Sep-04 11:04 
GeneralC++ code for 3D Pin
suiram4016-Sep-04 11:18
suiram4016-Sep-04 11:18 
GeneralRe: C++ code for 3D Pin
Christian Graus16-Sep-04 15:59
protectorChristian Graus16-Sep-04 15:59 
GeneralRe: C++ code for 3D Pin
Alexander M.,17-Sep-04 2:35
Alexander M.,17-Sep-04 2:35 
GeneralRe: C++ code for 3D Pin
Anonymous17-Sep-04 14:38
Anonymous17-Sep-04 14:38 
Generalminesweepes source code for visual c++ Pin
stefanosp416-Sep-04 8:13
stefanosp416-Sep-04 8:13 
GeneralRe: minesweepes source code for visual c++ Pin
Maximilien16-Sep-04 8:21
Maximilien16-Sep-04 8:21 
GeneralRe: minesweepes source code for visual c++ Pin
Alexander M.,16-Sep-04 9:44
Alexander M.,16-Sep-04 9:44 
GeneralRe: minesweepes source code for visual c++ Pin
stefanosp418-Sep-04 1:08
stefanosp418-Sep-04 1:08 
GeneralCreatethread fails but does not return NULL Pin
Anonymous16-Sep-04 8:02
Anonymous16-Sep-04 8:02 
GeneralRe: Createthread fails but does not return NULL Pin
David Crow16-Sep-04 9:32
David Crow16-Sep-04 9:32 
GeneralRe: Createthread fails but does not return NULL Pin
Alexander M.,16-Sep-04 9:42
Alexander M.,16-Sep-04 9:42 

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.