Click here to Skip to main content
15,895,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Problem with #defined values Pin
CPallini4-Feb-09 23:11
mveCPallini4-Feb-09 23:11 
Question(WMI) I don't get info about all CPU-cores [modified] Pin
Pasy_m4-Feb-09 20:54
Pasy_m4-Feb-09 20:54 
AnswerRe: (WMI) I don't get info about all CPU-cores Pin
Stuart Dootson4-Feb-09 23:10
professionalStuart Dootson4-Feb-09 23:10 
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 
Hi friends,

I had tried to stretch a Gif image and unable to do

My code is :

CImage image;
HDC dc = GetWindowDC()->GetSafeHdc();
BYTE *m_buffer;
CFile file;
if( !file.Open( MAKEINTRESOURCE(IDR_GIF1), CFile::modeRead) )
return false;
long m_buffer_size = (long)file.GetLength();
m_buffer = new BYTE[m_buffer_size];
if ( file.Read(m_buffer, m_buffer_size) != m_buffer_size )
return false;
file.Close();
IStream *pIstream;
CreateStreamOnHGlobal(NULL, TRUE, (LPSTREAM*)&pIstream);
ULARGE_INTEGER ulnSize;
ulnSize.QuadPart = m_buffer_size;
pIstream->SetSize(ulnSize);
LARGE_INTEGER lnOffset;
lnOffset.QuadPart = 0; //starting location is 0
pIstream->Seek(lnOffset, STREAM_SEEK_SET, NULL);
ULONG mysize;
pIstream->Write(m_buffer,m_buffer_size,&mysize);
image.Load(pIstream);
CRect rectDest;
rectDest.top = 0;
rectDest.bottom = 50;
rectDest.left = 0;
rectDest.right = 50;
image.StretchBlt(dc, rectDest, PATCOPY);
image.Draw(dc,0,0);

Kindly help me .. Smile | :)

Thanks in Advance..
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 
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 

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.