Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
CPallini15-Jan-13 11:30
mveCPallini15-Jan-13 11:30 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 3:17
yu-jian16-Jan-13 3:17 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
CPallini16-Jan-13 4:04
mveCPallini16-Jan-13 4:04 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 17:44
yu-jian16-Jan-13 17:44 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
jschell16-Jan-13 9:10
jschell16-Jan-13 9:10 
AnswerRe: Does anyone know this c plus plus knowledge? Pin
JackDingler16-Jan-13 11:19
JackDingler16-Jan-13 11:19 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
yu-jian16-Jan-13 17:50
yu-jian16-Jan-13 17:50 
GeneralRe: Does anyone know this c plus plus knowledge? Pin
JackDingler17-Jan-13 5:15
JackDingler17-Jan-13 5:15 
Questiondeque problem. Does this code has any problem? [solved] Pin
yu-jian14-Jan-13 3:47
yu-jian14-Jan-13 3:47 
AnswerRe: deque problem. Does this code has any problem? Pin
CPallini14-Jan-13 6:59
mveCPallini14-Jan-13 6:59 
GeneralRe: deque problem. Does this code has any problem? Pin
yu-jian14-Jan-13 13:50
yu-jian14-Jan-13 13:50 
GeneralRe: deque problem. Does this code has any problem? Pin
yu-jian14-Jan-13 16:02
yu-jian14-Jan-13 16:02 
QuestionCDC Problem with coordinates Pin
Argonia14-Jan-13 1:50
professionalArgonia14-Jan-13 1:50 
AnswerRe: CDC Problem with coordinates Pin
Argonia14-Jan-13 21:39
professionalArgonia14-Jan-13 21:39 
GeneralRe: CDC Problem with coordinates Pin
Vaclav_15-Jan-13 9:53
Vaclav_15-Jan-13 9:53 
GeneralRe: CDC Problem with coordinates Pin
Argonia15-Jan-13 21:23
professionalArgonia15-Jan-13 21:23 
QuestionDhcpRequestParams() Pin
Man in the mirror13-Jan-13 19:46
Man in the mirror13-Jan-13 19:46 
AnswerRe: DhcpRequestParams() Pin
Richard MacCutchan13-Jan-13 22:11
mveRichard MacCutchan13-Jan-13 22:11 
QuestionSOLVED From HANDLE to BITMAPINFO - another basic question for gurus Pin
Vaclav_13-Jan-13 5:30
Vaclav_13-Jan-13 5:30 
AnswerRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Richard MacCutchan13-Jan-13 5:44
mveRichard MacCutchan13-Jan-13 5:44 
C++
// a DIB is in the clipboard, draw it out
GLOBALHANDLE      hGMem ;    // create a global handle
LPBITMAPINFO      lpBI ;     // a pointer to the resultant bitmap
void*             pDIBBits;  // a pointer to the contents of the bitmap

OpenClipboard() ;                   // open the clipboard
hGMem = GetClipboardData(CF_DIB) ;  // get a handle (pointer) to the data in the clipboard
ASSERT(hGMem);                      // make sure it is valid
TRACE("\nfills LPBITMAPINFO"); 
lpBI = (LPBITMAPINFO)GlobalLock(hGMem) ; // lock that memory block and return a pointer to the DIB

At this point you can copy the memory block pointed to by lpBI into your program's address space and process it as required. You should then unlock and release hGMem (which is a system resource), and release the clipboard so other applications can use it.
One of these days I'm going to think of a really clever signature.

GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Vaclav_13-Jan-13 6:08
Vaclav_13-Jan-13 6:08 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus Pin
Richard MacCutchan13-Jan-13 6:32
mveRichard MacCutchan13-Jan-13 6:32 
QuestionHow to get detail error info from E_FAIL? Pin
Falconapollo11-Jan-13 21:23
Falconapollo11-Jan-13 21:23 
AnswerRe: How to get detail error info from E_FAIL? Pin
«_Superman_»11-Jan-13 23:43
professional«_Superman_»11-Jan-13 23:43 
GeneralRe: How to get detail error info from E_FAIL? Pin
Falconapollo12-Jan-13 0:00
Falconapollo12-Jan-13 0:00 

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.