Click here to Skip to main content
15,888,241 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a wrapper for winsock? Pin
Mithra40969-Jan-06 16:11
Mithra40969-Jan-06 16:11 
QuestionStack overflow in IE6.0 with SP1? Pin
thelearnervc9-Jan-06 11:43
thelearnervc9-Jan-06 11:43 
AnswerRe: Stack overflow in IE6.0 with SP1? Pin
Prakash Nadar9-Jan-06 18:52
Prakash Nadar9-Jan-06 18:52 
Questiondividing image into blocks Pin
Mareo_4219-Jan-06 10:24
Mareo_4219-Jan-06 10:24 
AnswerRe: dividing image into blocks Pin
Christian Graus9-Jan-06 11:57
protectorChristian Graus9-Jan-06 11:57 
GeneralRe: dividing image into blocks Pin
Mareo_4219-Jan-06 12:50
Mareo_4219-Jan-06 12:50 
GeneralRe: dividing image into blocks Pin
Christian Graus9-Jan-06 12:55
protectorChristian Graus9-Jan-06 12:55 
AnswerRe: dividing image into blocks Pin
__yb10-Jan-06 19:41
__yb10-Jan-06 19:41 
this should be no problem if u know it's data format.
I don't know what format u are reffering to, so lets assume the pixels are arranged in lines and are 4 bytes.
Now u can just read the blocks in a double loop:
int bx = block_x*block_width;
int by = block_y*block_height;
for(int x=0; x<16; x++) {
    for(int y=0; y<16; y++) {
        int pixel = data[(y+by)*img_width+(x+bx)];
    }
}

HTH,
Smile | :)
Questionprogram wont enter main()-function until character input is given Pin
maladuk9-Jan-06 10:22
maladuk9-Jan-06 10:22 
QuestionRe: program wont enter main()-function until character input is given Pin
David Crow9-Jan-06 10:30
David Crow9-Jan-06 10:30 
AnswerRe: program wont enter main()-function until character input is given Pin
maladuk10-Jan-06 10:21
maladuk10-Jan-06 10:21 
Questionmalloc causing program crash Pin
KellyR9-Jan-06 9:47
KellyR9-Jan-06 9:47 
AnswerRe: malloc causing program crash Pin
David Crow9-Jan-06 10:07
David Crow9-Jan-06 10:07 
AnswerRe: malloc causing program crash Pin
PJ Arends9-Jan-06 10:09
professionalPJ Arends9-Jan-06 10:09 
GeneralRe: malloc causing program crash Pin
KellyR9-Jan-06 10:16
KellyR9-Jan-06 10:16 
GeneralRe: malloc causing program crash Pin
mcljava12-Jan-06 19:01
mcljava12-Jan-06 19:01 
QuestionMaking a Simple Installation CD. Pin
jerry1211a9-Jan-06 7:26
jerry1211a9-Jan-06 7:26 
AnswerRe: Making a Simple Installation CD. Pin
Rage9-Jan-06 8:09
professionalRage9-Jan-06 8:09 
AnswerRe: Making a Simple Installation CD. Pin
ddmcr9-Jan-06 9:04
ddmcr9-Jan-06 9:04 
AnswerRe: Making a Simple Installation CD. Pin
ThatsAlok9-Jan-06 19:31
ThatsAlok9-Jan-06 19:31 
GeneralRe: Making a Simple Installation CD. Pin
Rage9-Jan-06 21:29
professionalRage9-Jan-06 21:29 
AnswerRe: Making a Simple Installation CD. Pin
Ravi Bhavnani10-Jan-06 7:40
professionalRavi Bhavnani10-Jan-06 7:40 
QuestionRetrieve output of console app? Pin
Cpt Rick9-Jan-06 5:05
Cpt Rick9-Jan-06 5:05 
AnswerRe: Retrieve output of console app? Pin
jhwurmbach9-Jan-06 5:25
jhwurmbach9-Jan-06 5:25 
AnswerRe: Retrieve output of console app? Pin
Rage9-Jan-06 6:00
professionalRage9-Jan-06 6:00 

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.