Click here to Skip to main content
15,909,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: (WMI) I don't get info about all CPU-cores Pin
Pasy_m5-Feb-09 2:42
Pasy_m5-Feb-09 2:42 
GeneralRe: (WMI) I don't get info about all CPU-cores Pin
David Crow5-Feb-09 3:33
David Crow5-Feb-09 3:33 
GeneralRe: (WMI) I don't get info about all CPU-cores Pin
Pasy_m6-Feb-09 1:27
Pasy_m6-Feb-09 1:27 
AnswerRe: (WMI) I don't get info about all CPU-cores Pin
Pasy_m12-Feb-09 1:38
Pasy_m12-Feb-09 1:38 
QuestionStretching Gifs Pin
chandru.jeeva4-Feb-09 20:47
chandru.jeeva4-Feb-09 20:47 
AnswerRe: Stretching Gifs Pin
Stuart Dootson4-Feb-09 23:56
professionalStuart Dootson4-Feb-09 23:56 
GeneralRe: Stretching Gifs Pin
chandru.jeeva5-Feb-09 0:54
chandru.jeeva5-Feb-09 0:54 
GeneralRe: Stretching Gifs Pin
Stuart Dootson5-Feb-09 1:05
professionalStuart Dootson5-Feb-09 1:05 
OK, here's the answer I was going to give you before I realised that PATCOPY doesn't work and SRCCOPY does (by trying it).

You have a whole load of steps - any one of which could be failing. You don't check returned status codes - any one of them could be failing and you don't know. So, try adding some error checking so you know what's going wrong.

Also, what's with the IStream and HGlobal stuff? You don't need that to read a CImage from a file - here's the code I'm using in my OnPaint:

PAINTSTRUCT ps;
CDC * drawDC = BeginPaint(&ps);
CRect rcClient;
GetClientRect(&rcClient);
CImage image;
image.Load(_T(image filename));
image.StretchBlt(*drawDC, rcClient, SRCCOPY);
EndPaint(&ps);


Simpler, no? Simple's good.
GeneralRe: Stretching Gifs Pin
chandru.jeeva8-Feb-09 19:02
chandru.jeeva8-Feb-09 19:02 
QuestionGetting message on pressing keyboard buttons while application is running Pin
VCProgrammer4-Feb-09 20:12
VCProgrammer4-Feb-09 20:12 
AnswerRe: Getting message on pressing keyboard buttons while application is running Pin
Cedric Moonen4-Feb-09 20:53
Cedric Moonen4-Feb-09 20:53 
QuestionProblem with modeless dialog Pin
materatsu4-Feb-09 18:52
materatsu4-Feb-09 18:52 
AnswerRe: Problem with modeless dialog Pin
soumya.sn4-Feb-09 19:25
soumya.sn4-Feb-09 19:25 
GeneralRe: Problem with modeless dialog Pin
materatsu9-Feb-09 16:03
materatsu9-Feb-09 16:03 
QuestionShellexecute and installing a file with out showing any further dialogs. Pin
kDevloper4-Feb-09 18:52
kDevloper4-Feb-09 18:52 
AnswerRe: Shellexecute and installing a file with out showing any further dialogs. Pin
«_Superman_»4-Feb-09 21:44
professional«_Superman_»4-Feb-09 21:44 
QuestionWindows Task Manager Pin
MsmVc4-Feb-09 18:35
MsmVc4-Feb-09 18:35 
Answer[Message Deleted] Pin
ATM@CodeProject4-Feb-09 18:49
ATM@CodeProject4-Feb-09 18:49 
GeneralRe: Windows Task Manager Pin
Davitor4-Feb-09 18:53
Davitor4-Feb-09 18:53 
GeneralRe: Windows Task Manager Pin
ATM@CodeProject4-Feb-09 18:55
ATM@CodeProject4-Feb-09 18:55 
GeneralRe: Windows Task Manager Pin
ATM@CodeProject4-Feb-09 19:21
ATM@CodeProject4-Feb-09 19:21 
Questionhow to do padding Pin
hemlat4-Feb-09 18:32
hemlat4-Feb-09 18:32 
AnswerRe: how to do padding Pin
«_Superman_»4-Feb-09 21:46
professional«_Superman_»4-Feb-09 21:46 
Questionprogram crashing.... Pin
VCProgrammer4-Feb-09 17:52
VCProgrammer4-Feb-09 17:52 
AnswerRe: program crashing.... Pin
VC++Maniac4-Feb-09 18:15
VC++Maniac4-Feb-09 18:15 

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.