Click here to Skip to main content
15,891,772 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ListControl Pin
Anilkumar K V28-Feb-07 0:17
Anilkumar K V28-Feb-07 0:17 
Questionvs2002: These project configuration(s) are out of date Pin
ikohl27-Feb-07 17:00
ikohl27-Feb-07 17:00 
QuestionFile handling in vc++ Pin
deeps_cute27-Feb-07 16:36
deeps_cute27-Feb-07 16:36 
AnswerRe: File handling in vc++ Pin
Christian Graus27-Feb-07 17:26
protectorChristian Graus27-Feb-07 17:26 
AnswerRe: File handling in vc++ Pin
Eytukan27-Feb-07 17:36
Eytukan27-Feb-07 17:36 
GeneralRe: File handling in vc++ Pin
deeps_cute27-Feb-07 19:42
deeps_cute27-Feb-07 19:42 
QuestionUnhandled exception Pin
apoc8327-Feb-07 15:54
apoc8327-Feb-07 15:54 
AnswerRe: Unhandled exception Pin
Stephen Hewitt27-Feb-07 16:11
Stephen Hewitt27-Feb-07 16:11 
Try changing this:
Yarray = (U8*) malloc( W*H );
Uarray = (U8*) malloc( W*H );
Varray = (U8*) malloc( W*H );

to this:
Yarray = (U8*)malloc(W*H*sizof(U8));
Uarray = (U8*)malloc(W*H*sizof(U8));
Varray = (U8*)malloc(W*H*sizof(U8));


If you're using C++ you it would be better to use new and delete however. i.e.
Yarray = new U8[W*H];
Uarray = new U8[W*H];
Varray = new U8[W*H];
// Stuff here...
delete [] Yarray;
delete [] Uarray;
delete [] Varray;


Even better would be to use a std::vector.


Steve

GeneralRe: Unhandled exception Pin
apoc8327-Feb-07 16:27
apoc8327-Feb-07 16:27 
GeneralRe: Unhandled exception Pin
Stephen Hewitt27-Feb-07 16:37
Stephen Hewitt27-Feb-07 16:37 
GeneralRe: Unhandled exception Pin
Stephen Hewitt27-Feb-07 17:40
Stephen Hewitt27-Feb-07 17:40 
GeneralRe: Unhandled exception Pin
apoc8327-Feb-07 18:41
apoc8327-Feb-07 18:41 
GeneralRe: Unhandled exception Pin
Stephen Hewitt27-Feb-07 18:52
Stephen Hewitt27-Feb-07 18:52 
GeneralRe: Unhandled exception Pin
apoc8327-Feb-07 19:13
apoc8327-Feb-07 19:13 
GeneralRe: Unhandled exception Pin
Stephen Hewitt27-Feb-07 19:17
Stephen Hewitt27-Feb-07 19:17 
Generalpre tags please Pin
toxcct27-Feb-07 22:00
toxcct27-Feb-07 22:00 
GeneralRe: pre tags please Pin
apoc8327-Feb-07 22:10
apoc8327-Feb-07 22:10 
GeneralRe: Unhandled exception Pin
Eytukan27-Feb-07 17:53
Eytukan27-Feb-07 17:53 
GeneralRe: Unhandled exception Pin
ThatsAlok27-Feb-07 19:31
ThatsAlok27-Feb-07 19:31 
GeneralRe: Unhandled exception Pin
Eytukan27-Feb-07 19:34
Eytukan27-Feb-07 19:34 
GeneralRe: Unhandled exception Pin
ThatsAlok27-Feb-07 19:50
ThatsAlok27-Feb-07 19:50 
GeneralRe: Unhandled exception Pin
Eytukan27-Feb-07 19:52
Eytukan27-Feb-07 19:52 
GeneralRe: Unhandled exception [modified] Pin
apoc8327-Feb-07 22:09
apoc8327-Feb-07 22:09 
QuestionRe: Unhandled exception Pin
apoc831-Mar-07 21:11
apoc831-Mar-07 21:11 
QuestionGetPixel() help Pin
arunforce27-Feb-07 15:12
arunforce27-Feb-07 15:12 

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.