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

C / C++ / MFC

 
GeneralRe: Why memcpy not correct! Pin
Hongjun Ge19-Mar-06 16:05
Hongjun Ge19-Mar-06 16:05 
AnswerRe: Why memcpy not correct! Pin
Richard Andrew x6419-Mar-06 7:41
professionalRichard Andrew x6419-Mar-06 7:41 
GeneralRe: Why memcpy not correct! Pin
bob1697219-Mar-06 8:04
bob1697219-Mar-06 8:04 
GeneralRe: Why memcpy not correct! Pin
Richard Andrew x6419-Mar-06 8:14
professionalRichard Andrew x6419-Mar-06 8:14 
GeneralRe: Why memcpy not correct! Pin
bob1697219-Mar-06 8:26
bob1697219-Mar-06 8:26 
AnswerRe: Why memcpy not correct! Pin
bob1697219-Mar-06 7:58
bob1697219-Mar-06 7:58 
AnswerRe: Why memcpy not correct! Pin
David Crow19-Mar-06 9:15
David Crow19-Mar-06 9:15 
Questioni want to let white transform into black Pin
lowkey5719-Mar-06 4:16
lowkey5719-Mar-06 4:16 
my program use matrix to get rgb
and then i hope that white transform into black

int main(int argc, char* argv[])
{
FILE *fidr;
FILE *fidg;
FILE *fidb;
fidr = fopen("logr.txt","w");
fidg = fopen("logg.txt","w");
fidb = fopen("logb.txt","w");
GBmp ImgA, ImgB;
int i,j,k;
ImgA.load("a.bmp");
unsigned char *rgb;
rgb = (unsigned char*) malloc( ImgA.w*ImgA.h*3*sizeof(unsigned char) );
rgb = ImgA.rgb;
for(i=ImgA.h-1;i>=0;i--){
for(j=0;j<imga.w;j++){
="" fprintf(fidr,"rgb(%3d,%3d)=",i,j);
for(k=0;k<3;k++){
if (k==0)
{
fprintf(fidr," %4d",*(rgb+i="" *="" imga.w="" 3="" +="" j*3="" k));
="" }
="" }

="" if(j="ImgA.w-1)
" {
="" fprintf(fidr,"\n");
="" for(i="ImgA.h-1;i">=0;i--){
for(j=0;j<imga.w;j++){
="" fprintf(fidg,"rgb(%3d,%3d)=",i,j);
for(k=0;k<3;k++){
if (k==1)
{
fprintf(fidg," %3d="" ",*(rgb+i="" *="" imga.w="" 3="" +="" j*3="" k));
="" }

="" }
="" if(j="ImgA.w-1)
" {
="" fprintf(fidg,"\n");
="" for(i="ImgA.h-1;i">=0;i--){
for(j=0;j
AnswerAnd what's the problem? Pin
normanS19-Mar-06 18:12
normanS19-Mar-06 18:12 
Questionanyone expert in C++ help me please Pin
omegahawk19-Mar-06 3:47
omegahawk19-Mar-06 3:47 
AnswerRe: anyone expert in C++ help me please Pin
Chris Losinger19-Mar-06 4:17
professionalChris Losinger19-Mar-06 4:17 
QuestionMemory leak detection Pin
Waldermort19-Mar-06 1:41
Waldermort19-Mar-06 1:41 
AnswerRe: Memory leak detection Pin
Joe Woodbury19-Mar-06 11:42
professionalJoe Woodbury19-Mar-06 11:42 
QuestionUnknown message Pin
Irina Tseitlin19-Mar-06 1:16
Irina Tseitlin19-Mar-06 1:16 
AnswerRe: Unknown message Pin
karle19-Mar-06 5:26
karle19-Mar-06 5:26 
AnswerRe: Unknown message Pin
Stephen Hewitt19-Mar-06 11:46
Stephen Hewitt19-Mar-06 11:46 
QuestionHow do I know if an OK event came from mouse or Enter? Pin
IlanTal18-Mar-06 23:31
IlanTal18-Mar-06 23:31 
AnswerRe: How do I know if an OK event came from mouse or Enter? Pin
Waldermort19-Mar-06 1:31
Waldermort19-Mar-06 1:31 
AnswerRe: How do I know if an OK event came from mouse or Enter? Pin
Graham Bradshaw19-Mar-06 2:59
Graham Bradshaw19-Mar-06 2:59 
GeneralRe: How do I know if an OK event came from mouse or Enter? Pin
IlanTal19-Mar-06 4:03
IlanTal19-Mar-06 4:03 
AnswerRe: How do I know if an OK event came from mouse or Enter? Pin
Chris Gao19-Mar-06 10:30
Chris Gao19-Mar-06 10:30 
AnswerRe: How do I know if an OK event came from mouse or Enter? Pin
Chris Gao19-Mar-06 10:32
Chris Gao19-Mar-06 10:32 
Questionhelp! Pin
harry~18-Mar-06 21:32
harry~18-Mar-06 21:32 
AnswerRe: help! Pin
Waldermort19-Mar-06 1:37
Waldermort19-Mar-06 1:37 
AnswerRe: help! Pin
Hamid_RT19-Mar-06 2:46
Hamid_RT19-Mar-06 2:46 

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.