Click here to Skip to main content
16,021,580 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConfusion about object code generated? Pin
lionelcyril7-May-09 5:12
lionelcyril7-May-09 5:12 
AnswerRe: Confusion about object code generated? Pin
Eytukan7-May-09 5:20
Eytukan7-May-09 5:20 
AnswerRe: Confusion about object code generated? Pin
«_Superman_»7-May-09 5:22
professional«_Superman_»7-May-09 5:22 
GeneralRe: Confusion about object code generated? Pin
Eytukan7-May-09 5:25
Eytukan7-May-09 5:25 
AnswerRe: Confusion about object code generated? Pin
CPallini7-May-09 7:00
mveCPallini7-May-09 7:00 
QuestionIWinHttpRequest get_ResponseStream and Bitmap FromStream [modified] Pin
J.B.7-May-09 4:54
J.B.7-May-09 4:54 
AnswerRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
Stuart Dootson7-May-09 7:28
professionalStuart Dootson7-May-09 7:28 
AnswerRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
J.B.7-May-09 20:58
J.B.7-May-09 20:58 
Dear Stuart,

Thanks for the help. I'd get invalid image if I offset the stream by 6 bytes. I am not sure why it worked in your case.

Anyway, I found where my problem was. I have that code running outside of GDI+ library init scope. After I moved the following init code to CWinApp::InitInstance(), it worked fine.
// Initialize GDI+.
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);

GeneralRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
Stuart Dootson7-May-09 21:47
professionalStuart Dootson7-May-09 21:47 
GeneralRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
J.B.7-May-09 22:50
J.B.7-May-09 22:50 
GeneralRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
Stuart Dootson7-May-09 23:04
professionalStuart Dootson7-May-09 23:04 
Questionit`s so hard, pro please help me Pin
trongduy7-May-09 4:20
trongduy7-May-09 4:20 
AnswerRe: it`s so hard, pro please help me Pin
David Crow7-May-09 4:23
David Crow7-May-09 4:23 
Questionstopping an exe Pin
jimjim7337-May-09 4:20
jimjim7337-May-09 4:20 
AnswerRe: stopping an exe Pin
David Crow7-May-09 4:24
David Crow7-May-09 4:24 
GeneralRe: stopping an exe Pin
I am BATMAN7-May-09 7:10
I am BATMAN7-May-09 7:10 
GeneralRe: stopping an exe Pin
David Crow7-May-09 7:33
David Crow7-May-09 7:33 
JokeRe: stopping an exe Pin
CPallini7-May-09 9:40
mveCPallini7-May-09 9:40 
AnswerRe: stopping an exe Pin
Stuart Dootson7-May-09 4:26
professionalStuart Dootson7-May-09 4:26 
QuestionSending data from vector into and array Pin
brucewayn7-May-09 2:59
brucewayn7-May-09 2:59 
AnswerRe: Sending data from vector into and array Pin
Rajesh R Subramanian7-May-09 3:21
professionalRajesh R Subramanian7-May-09 3:21 
AnswerRe: Sending data from vector into and array Pin
led mike7-May-09 4:17
led mike7-May-09 4:17 
AnswerRe: Sending data from vector into and array Pin
Stuart Dootson7-May-09 4:23
professionalStuart Dootson7-May-09 4:23 
QuestionUsing float to define boolean type in C Pin
kaku_lala7-May-09 1:58
kaku_lala7-May-09 1:58 
AnswerRe: Using float to define boolean type in C Pin
Rajesh R Subramanian7-May-09 2:04
professionalRajesh R Subramanian7-May-09 2:04 

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.