Click here to Skip to main content
16,011,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: very long numbers Pin
algol29-May-03 1:54
algol29-May-03 1:54 
GeneralRe: very long numbers Pin
basementman29-May-03 4:18
basementman29-May-03 4:18 
GeneralRe: very long numbers Pin
Anna-Jayne Metcalfe2-Jun-03 0:26
Anna-Jayne Metcalfe2-Jun-03 0:26 
GeneralClosing Word files opened by Shellexecute() in WIN98 Pin
dandy7728-May-03 16:39
dandy7728-May-03 16:39 
GeneralRe: Closing Word files opened by Shellexecute() in WIN98 Pin
DavidADEW29-May-03 2:31
DavidADEW29-May-03 2:31 
GeneralCreating MSFlexGrid at runtime Pin
Maratoid28-May-03 14:03
Maratoid28-May-03 14:03 
GeneralRe: Creating MSFlexGrid at runtime Pin
Toni7828-May-03 18:44
Toni7828-May-03 18:44 
GeneralGetPixel() help! Pin
EVim28-May-03 13:19
EVim28-May-03 13:19 
I am having problem with accessing a particular location of bitmap.
what i want to do is store the x,y coordinates of black pixels on a perfectly white background. The error code is "GetPixel' : cannot convert parameter 1 from 'struct HDIB__ ** ' to 'struct HDC__ *'"
I tried GetPixel (x,y) but it doent work neither.
Does anyone know?Thanks!

POINT* p=new POINT[length];
POINT* p2=new POINT[length];

int w=cxDIB;//the width of the image
int h=cyDIB;//the height of the bitmap
i=0;
for(w=0;w<=cxDIB;w++)
{
for(h=0;h<=cyDIB;h++)
{
p[i].x=w;
p[i].y=h;
i++;
}}

i=0;
for(w=0;w<=cxDIB;w++)
{
for(h=0;h<=cyDIB;h++)
{
if(GetPixel(m_hDIB2,p->x,p->y)==RGB(0,0,0)) p2[i] =p[i];
i++;
}}


delete [] p;
delete [] buf;
GeneralRe: GetPixel() help! Pin
Anonymous28-May-03 15:23
Anonymous28-May-03 15:23 
GeneralThank you! Pin
Sevim29-May-03 5:11
Sevim29-May-03 5:11 
GeneralZero Proof Algorithm Pin
3green28-May-03 12:05
3green28-May-03 12:05 
Generalraw socket sendto() Pin
Kuniva28-May-03 12:02
Kuniva28-May-03 12:02 
GeneralRe: raw socket sendto() Pin
Trollslayer28-May-03 22:15
mentorTrollslayer28-May-03 22:15 
GeneralRe: raw socket sendto() Pin
Kuniva29-May-03 1:03
Kuniva29-May-03 1:03 
GeneralRe: raw socket sendto() Pin
Johnny ²29-May-03 3:13
Johnny ²29-May-03 3:13 
GeneralTransparent window Pin
untwisted28-May-03 11:59
untwisted28-May-03 11:59 
GeneralRe: Transparent window Pin
Kippesoep29-May-03 2:13
Kippesoep29-May-03 2:13 
GeneralWeb Services Pin
Christian Graus28-May-03 11:48
protectorChristian Graus28-May-03 11:48 
GeneralRe: Web Services Pin
Nemanja Trifunovic28-May-03 11:57
Nemanja Trifunovic28-May-03 11:57 
GeneralRe: Web Services Pin
Christian Graus28-May-03 11:59
protectorChristian Graus28-May-03 11:59 
GeneralRe: Web Services Pin
Michael Dunn28-May-03 15:56
sitebuilderMichael Dunn28-May-03 15:56 
GeneralRe: Web Services Pin
Christian Graus28-May-03 12:02
protectorChristian Graus28-May-03 12:02 
GeneralRe: Web Services Pin
Nemanja Trifunovic28-May-03 12:23
Nemanja Trifunovic28-May-03 12:23 
GeneralRe: Web Services Pin
Jason Henderson28-May-03 17:31
Jason Henderson28-May-03 17:31 
Questionwhich function can capture mouse and cursor events? Pin
includeh1028-May-03 10:53
includeh1028-May-03 10:53 

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.