Click here to Skip to main content

C / C++ / MFC

 
QuestionCDC Problem with coordinates PinmemberArgonia14-Jan-13 2:50 
AnswerRe: CDC Problem with coordinates PinmemberArgonia14-Jan-13 22:39 
GeneralRe: CDC Problem with coordinates PinmemberVaclav_Sal15-Jan-13 10:53 
GeneralRe: CDC Problem with coordinates PinmemberArgonia15-Jan-13 22:23 
QuestionDhcpRequestParams() PinmemberMan in the mirror13-Jan-13 20:46 
AnswerRe: DhcpRequestParams() PinmvpRichard MacCutchan13-Jan-13 23:11 
QuestionSOLVED From HANDLE to BITMAPINFO - another basic question for gurus [modified] PinmemberVaclav_Sal13-Jan-13 6:30 
AnswerRe: From HANDLE to BITMAPINFO - another basic question for gurus PinmvpRichard MacCutchan13-Jan-13 6:44 
// 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 PinmemberVaclav_Sal13-Jan-13 7:08 
GeneralRe: From HANDLE to BITMAPINFO - another basic question for gurus PinmvpRichard MacCutchan13-Jan-13 7:32 
QuestionHow to get detail error info from E_FAIL? PinmemberFalconapollo11-Jan-13 22:23 
AnswerRe: How to get detail error info from E_FAIL? Pinmember«_Superman_»12-Jan-13 0:43 
GeneralRe: How to get detail error info from E_FAIL? PinmemberFalconapollo12-Jan-13 1:00 
GeneralRe: How to get detail error info from E_FAIL? PinmemberJochen Arndt13-Jan-13 22:05 
AnswerRe: How to get detail error info from E_FAIL? PinmemberArgonia14-Jan-13 3:01 
QuestionVideo Capture using DirectShow only works for first time.? Pinmembermbatra3110-Jan-13 21:25 
AnswerRe: Video Capture using DirectShow only works for first time.? Pingroup_AnsHUMAN_ 11-Jan-13 3:05 
AnswerRe: Video Capture using DirectShow only works for first time.? PinmemberVaclav_Sal14-Jan-13 17:10 
Questionhow to unsigned int64 to two unsigned int32 values Pinmembervishalgpt9-Jan-13 23:22 
AnswerRe: how to unsigned int64 to two unsigned int32 values PinmemberJochen Arndt10-Jan-13 0:06 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt10-Jan-13 0:32 
GeneralRe: how to unsigned int64 to two unsigned int32 values PinmemberJochen Arndt10-Jan-13 0:58 
GeneralRe: how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt10-Jan-13 1:08 
AnswerRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmember«_Superman_»10-Jan-13 19:39 
GeneralRe: [SOLVED] how to unsigned int64 to two unsigned int32 values Pinmembervishalgpt14-Jan-13 16:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150302.1 | Last Updated 5 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid