Click here to Skip to main content
15,921,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple views and single document Pin
palbano2-Sep-03 7:25
palbano2-Sep-03 7:25 
GeneralVC++ / MSAccess Date Handling Pin
msdaug2-Sep-03 6:15
msdaug2-Sep-03 6:15 
GeneralRe: VC++ / MSAccess Date Handling Pin
palbano2-Sep-03 6:56
palbano2-Sep-03 6:56 
GeneralRe: VC++ / MSAccess Date Handling Pin
msdaug2-Sep-03 9:56
msdaug2-Sep-03 9:56 
GeneralRe: VC++ / MSAccess Date Handling Pin
msdaug2-Sep-03 14:10
msdaug2-Sep-03 14:10 
GeneralRe: VC++ / MSAccess Date Handling Pin
Steve S3-Sep-03 2:23
Steve S3-Sep-03 2:23 
GeneralRe: VC++ / MSAccess Date Handling Pin
msdaug10-Sep-03 8:00
msdaug10-Sep-03 8:00 
GeneralHelp! Figure out whats wrong! FOR LOOP-ing! Pin
colormyiris2-Sep-03 5:50
colormyiris2-Sep-03 5:50 
hello all..
i need some help to solve my problem..
i'd tried so many times to test this program...
it works very well if i did not include the FOR LOOP into my program.

i hope you guys can have a look at my program and figure out
what mistakes i did..thanks..

COLORREF OriginalPixelValue;
COLORREF NewPixelValuesss;
int PixelCount=0;
CoX=0; //coordinate-X
CoY=0; //coordinate-Y

for(int abcde=0; abcde<48; abcde++)
{

OriginalPixelValue=PixelValue(CoX,CoY);
NewPixelValuesss=(OriginalPixelValue | Data_0[PixelCount]) & Data_1[PixelCount];
GoWatermark(NewPixelValuesss,CoX,CoY);
PixelCount+=1;

if(CoX<m_bminfo1.bmwidth)
{
="" cox+="1;
" }

="" else
="" coy+="1;
" cox="0;
" <b="">}


COLORREF CThongThongThongDlg::PixelValue(unsigned int cox, unsigned int coy)
{
m_pixelvalue=GetPixel(m_dcMem1, cox, coy);
return m_pixelvalue;
}



BOOL CThongThongThongDlg::GoWatermark(unsigned long ValueValue, int CoordinateX, int CoordinateY)
{

NewSettedPixelValue=m_dcMem1.SetPixel(CoordinateX, CoordinateY, ValueValue);
UpdateData(FALSE);
return TRUE;
}



please take note at those lines in [B]BOLD[/B] .. when i put in this lines..to loop... the function does go..(i mean..the results i got is nothing...not working).. but if i delete those lines(those loops)..the function will run properly.. i really need to loop..its very important..

this is a school project.. where i need to read the bits values inside the 24-bit BITMAPS and do some modification of its RGB LSB.. i really need help.

thanks a lot.

thong
twh81@tm.net.my

...
GeneralRe: Help! Figure out whats wrong! FOR LOOP-ing! Pin
Ted Ferenc2-Sep-03 6:54
Ted Ferenc2-Sep-03 6:54 
GeneralRe: Help! Figure out whats wrong! FOR LOOP-ing! Pin
David Crow2-Sep-03 7:39
David Crow2-Sep-03 7:39 
GeneralRe: Help! Figure out whats wrong! FOR LOOP-ing! Pin
Ted Ferenc2-Sep-03 7:48
Ted Ferenc2-Sep-03 7:48 
GeneralRe: Help! Figure out whats wrong! FOR LOOP-ing! Pin
Andrew Allen2-Sep-03 10:10
Andrew Allen2-Sep-03 10:10 
GeneralRe: Help! Figure out whats wrong! FOR LOOP-ing! Pin
David Crow2-Sep-03 7:45
David Crow2-Sep-03 7:45 
GeneralI need a MMC expert Pin
YaronNir2-Sep-03 4:57
YaronNir2-Sep-03 4:57 
GeneralPlease explain this error message for me. T__T Pin
2-Sep-03 4:49
suss2-Sep-03 4:49 
GeneralRe: Please explain this error message for me. T__T Pin
Ian Darling2-Sep-03 5:03
Ian Darling2-Sep-03 5:03 
QuestionHow add aplication in Internet Explorer Rebar Pin
Denis A. Vergara2-Sep-03 4:48
Denis A. Vergara2-Sep-03 4:48 
QuestionGetTextMetrics results depends of text angle ? Pin
JP GOBLET2-Sep-03 4:35
JP GOBLET2-Sep-03 4:35 
Generalmemory allocation in C Pin
ravingcoder2-Sep-03 4:31
ravingcoder2-Sep-03 4:31 
GeneralRe: memory allocation in C Pin
hph2-Sep-03 4:35
hph2-Sep-03 4:35 
GeneralRe: memory allocation in C Pin
jason992-Sep-03 4:36
jason992-Sep-03 4:36 
GeneralRe: memory allocation in C Pin
Maximilien2-Sep-03 4:38
Maximilien2-Sep-03 4:38 
GeneralRe: memory allocation in C Pin
ravingcoder2-Sep-03 5:55
ravingcoder2-Sep-03 5:55 
GeneralWaitForMultipleObjects( ) and thread object Pin
Jin Yao2-Sep-03 4:16
Jin Yao2-Sep-03 4:16 
GeneralRe: WaitForMultipleObjects( ) and thread object Pin
David Crow2-Sep-03 7:50
David Crow2-Sep-03 7:50 

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.