Click here to Skip to main content
15,921,548 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap problem Pin
trioum8-Jan-08 19:19
trioum8-Jan-08 19:19 
GeneralRe: Bitmap problem Pin
Nishad S8-Jan-08 19:48
Nishad S8-Jan-08 19:48 
GeneralRe: Bitmap problem Pin
trioum8-Jan-08 21:24
trioum8-Jan-08 21:24 
QuestionRe: Bitmap problem Pin
CPallini8-Jan-08 21:44
mveCPallini8-Jan-08 21:44 
GeneralRe: Bitmap problem Pin
uusheikh8-Jan-08 21:26
uusheikh8-Jan-08 21:26 
GeneralRe: Bitmap problem Pin
trioum8-Jan-08 23:05
trioum8-Jan-08 23:05 
QuestionProblem with BitBlt form the Service Application Pin
ashishbhatt8-Jan-08 17:33
ashishbhatt8-Jan-08 17:33 
GeneralRe: Problem with BitBlt form the Service Application Pin
Hamid_RT8-Jan-08 18:00
Hamid_RT8-Jan-08 18:00 
See does this code helpful
HDC m_hdcMem,hdc;
HBITMAP m_Bitmap,m_OldBitmap,hMainBmp;
hdc=GetDesktopWindow()->GetDC()->m_hDC;//GetDC()->m_hDC     m_hdcMem= CreateCompatibleDC(hdc);	
m_Bitmap = CreateCompatibleBitmap(hdc,800,600);
 m_OldBitmap=(HBITMAP) SelectObject(m_hdcMem, m_Bitmap);
BitBlt(m_hdcMem, 0,0,800,600, hdc,0,0,SRCCOPY);
hMainBmp =(HBITMAP) SelectObject(m_hdcMem, m_OldBitmap);
/////Save this snapshot to a file/////
CImage m_Image;
m_Image.Attach(hMainBmp);
m_Image.Save("c:\\test.bmp");
m_Image.Destroy();
DeleteDC(m_hdcMem);
DeleteObject(hMainBmp );
DeleteObject(m_OldBitmap);

QuestionRe: Problem with BitBlt form the Service Application Pin
ashishbhatt8-Jan-08 18:41
ashishbhatt8-Jan-08 18:41 
GeneralRe: Problem with BitBlt form the Service Application Pin
Nishad S8-Jan-08 20:01
Nishad S8-Jan-08 20:01 
GeneralRe: Problem with BitBlt form the Service Application Pin
ashishbhatt8-Jan-08 20:54
ashishbhatt8-Jan-08 20:54 
GeneralRe: Problem with BitBlt form the Service Application Pin
Nishad S8-Jan-08 21:38
Nishad S8-Jan-08 21:38 
GeneralRe: Problem with BitBlt form the Service Application Pin
ashishbhatt8-Jan-08 21:59
ashishbhatt8-Jan-08 21:59 
GeneralRe: Problem with BitBlt form the Service Application Pin
Nishad S8-Jan-08 22:14
Nishad S8-Jan-08 22:14 
GeneralRe: Problem with BitBlt form the Service Application Pin
ashishbhatt8-Jan-08 22:28
ashishbhatt8-Jan-08 22:28 
GeneralRe: Problem with BitBlt form the Service Application Pin
Mark Salsbery9-Jan-08 7:30
Mark Salsbery9-Jan-08 7:30 
Questionhow to take the path dynamically when connecting to the database using SQLConfigDataSource function. Pin
viritha8-Jan-08 15:43
viritha8-Jan-08 15:43 
Generali want to change system time(TrayClockWClass) windows's width Pin
lgbean8-Jan-08 12:54
lgbean8-Jan-08 12:54 
Generalweird error on defining a friend method Pin
gizmokaka8-Jan-08 11:44
gizmokaka8-Jan-08 11:44 
GeneralRe: weird error on defining a friend method Pin
Mark Salsbery8-Jan-08 12:00
Mark Salsbery8-Jan-08 12:00 
GeneralRe: weird error on defining a friend method Pin
gizmokaka8-Jan-08 22:05
gizmokaka8-Jan-08 22:05 
GeneralRe: weird error on defining a friend method Pin
Mark Salsbery9-Jan-08 6:32
Mark Salsbery9-Jan-08 6:32 
QuestionSaving image in database Pin
reza_a8-Jan-08 11:04
reza_a8-Jan-08 11:04 
QuestionRe: Saving image in database Pin
Mark Salsbery8-Jan-08 12:01
Mark Salsbery8-Jan-08 12:01 
GeneralRe: Saving image in database Pin
Mahesh Kulkarni8-Jan-08 22:21
Mahesh Kulkarni8-Jan-08 22:21 

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.