Click here to Skip to main content
15,886,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is anybody familiar with Borland C++? Pin
Priya..k29-Dec-05 23:35
Priya..k29-Dec-05 23:35 
GeneralRe: Is anybody familiar with Borland C++? Pin
Prakash Nadar29-Dec-05 23:38
Prakash Nadar29-Dec-05 23:38 
GeneralRe: Is anybody familiar with Borland C++? Pin
Ravi Bhavnani30-Dec-05 6:37
professionalRavi Bhavnani30-Dec-05 6:37 
QuestionC++ MFC Decrement Pin
N.Byarley29-Dec-05 18:10
N.Byarley29-Dec-05 18:10 
AnswerRe: C++ MFC Decrement Pin
vikas amin29-Dec-05 19:57
vikas amin29-Dec-05 19:57 
AnswerRe: C++ MFC Decrement Pin
vikas amin29-Dec-05 20:29
vikas amin29-Dec-05 20:29 
QuestionHow to Save Picture from Clipboard to file using VC++? Pin
greenapplezlp29-Dec-05 15:11
greenapplezlp29-Dec-05 15:11 
AnswerRe: How to Save Picture from Clipboard to file using VC++? Pin
Identity Undisclosed29-Dec-05 19:01
Identity Undisclosed29-Dec-05 19:01 
This is the way u capture bitmap from clipboard.

BOOL bRes = OpenClipboard();<br />
HBITMAP hBmp = (HBITMAP) GetClipboardData(CF_BITMAP);<br />
if ( hBmp != NULL )<br />
{<br />
      CClientDC dc(this);<br />
      HDC hDC = CreateCompatibleDC(NULL);<br />
      SelectObject(hDC, hBmp);<br />
      if ( !BitBlt(dc.m_hDC, 0, 0, 200, 200, hDC, 0, 0, SRCCOPY) )<br />
	AfxMessageBox("Err");<br />
}<br />
	<br />
bRes = CloseClipboard();



Saving the bmp into a file is simple as well. You can look into the MSDN. or below link on codeproject for saving HBITMAP to File.
http://www.codeproject.com/bitmap/drawing2bitmap.asp

Best Regards,

-- modified at 2:24 Friday 30th December, 2005
GeneralRe: How to Save Picture from Clipboard to file using VC++? Pin
Owner drawn29-Dec-05 19:56
Owner drawn29-Dec-05 19:56 
GeneralRe: How to Save Picture from Clipboard to file using VC++? Pin
greenapplezlp29-Dec-05 20:25
greenapplezlp29-Dec-05 20:25 
Questioninternet accelerator?? Pin
gr8coaster32929-Dec-05 13:03
gr8coaster32929-Dec-05 13:03 
AnswerRe: internet accelerator?? Pin
Prakash Nadar29-Dec-05 23:34
Prakash Nadar29-Dec-05 23:34 
QuestionPrinting Problem - Console App - C++ - VS2005 Pin
LudwigKeck29-Dec-05 12:00
LudwigKeck29-Dec-05 12:00 
AnswerRe: Printing Problem - Console App - C++ - VS2005 Pin
Prakash Nadar29-Dec-05 23:20
Prakash Nadar29-Dec-05 23:20 
QuestionSimple DLL question Pin
Axonn Echysttas29-Dec-05 8:50
Axonn Echysttas29-Dec-05 8:50 
AnswerRe: Simple DLL question Pin
basementman29-Dec-05 8:54
basementman29-Dec-05 8:54 
GeneralRe: Simple DLL question Pin
Axonn Echysttas30-Dec-05 23:33
Axonn Echysttas30-Dec-05 23:33 
Questionconnecting P2P Pin
arui6929-Dec-05 8:13
arui6929-Dec-05 8:13 
AnswerRe: connecting P2P Pin
Nish Nishant29-Dec-05 10:06
sitebuilderNish Nishant29-Dec-05 10:06 
QuestionDragable buttons Pin
zapper22229-Dec-05 7:56
zapper22229-Dec-05 7:56 
Questionsendto() in raw sock mode gets WSAEINTR err. Pin
9ine29-Dec-05 7:33
9ine29-Dec-05 7:33 
Questionhow to write a unicode string to a text file Pin
ChrisLang29-Dec-05 7:27
ChrisLang29-Dec-05 7:27 
AnswerRe: how to write a unicode string to a text file Pin
Nish Nishant29-Dec-05 8:36
sitebuilderNish Nishant29-Dec-05 8:36 
AnswerRe: how to write a unicode string to a text file Pin
Taka Muraoka29-Dec-05 18:04
Taka Muraoka29-Dec-05 18:04 
AnswerRe: how to write a unicode string to a text file Pin
krmed30-Dec-05 3:57
krmed30-Dec-05 3:57 

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.