Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Rewind in a serialize process? Pin
Ravi Bhavnani11-Dec-01 4:45
professionalRavi Bhavnani11-Dec-01 4:45 
GeneralRe: Rewind in a serialize process? Pin
José Luis Sogorb11-Dec-01 6:01
José Luis Sogorb11-Dec-01 6:01 
GeneralRe: Rewind in a serialize process? Pin
Ravi Bhavnani12-Dec-01 1:57
professionalRavi Bhavnani12-Dec-01 1:57 
GeneralRe: Rewind in a serialize process? Pin
José Luis Sogorb12-Dec-01 6:09
José Luis Sogorb12-Dec-01 6:09 
GeneralRe: Rewind in a serialize process? Pin
José Luis Sogorb13-Dec-01 3:33
José Luis Sogorb13-Dec-01 3:33 
GeneralGet image into DIB Pin
Jerry Wang11-Dec-01 4:27
Jerry Wang11-Dec-01 4:27 
GeneralRe: Get image into DIB Pin
PJ Arends11-Dec-01 9:08
professionalPJ Arends11-Dec-01 9:08 
GeneralRe: Get image into DIB Pin
Jerry Wang12-Dec-01 7:56
Jerry Wang12-Dec-01 7:56 
Great! Thanks for the CopyImage tip. I'll give it a try. One more question, how does CopyImage know the bit depth of 'bmp'? Is there a flag in there where I set?

This is how I am creating my bitmap:

<br />
	CClientDC screenDC(pView);<br />
<br />
	bitmapBefore.CreateCompatibleBitmap(&screenDC, sizeBefore.cx, sizeBefore.cy);<br />
	bitmapBefore.SetBitmapBits(sizeBefore.cy*sizeBefore.cx*4, imageBuffer);<br />


where imageBuffer is my Byte string with xBGRxBGRxBGR...

Right now image only displays properly for 32bit/pixel displaying modes, and that's because I'm grabing DC from screen. Since the screen and my image are both 32bit/pixel, the image displays correctly. How do I make the bitmap have the information of 32bit/pixel when my screen DC is not? I have to replace CreateCompatibilityBitmap with something else don't I?

Thanks again!Smile | :)
GeneralRe: Get image into DIB Pin
PJ Arends12-Dec-01 13:16
professionalPJ Arends12-Dec-01 13:16 
GeneralRe: Get image into DIB Pin
13-Dec-01 12:06
suss13-Dec-01 12:06 
GeneralAutomation in Outlook Pin
JDMoore11-Dec-01 4:13
JDMoore11-Dec-01 4:13 
QuestionHow to determine if IIS is installed and version? Pin
Matt Philmon11-Dec-01 3:52
Matt Philmon11-Dec-01 3:52 
AnswerRe: Problem solving skill! Pin
Masaaki Onishi11-Dec-01 7:49
Masaaki Onishi11-Dec-01 7:49 
QuestionIs there a round function? Pin
Chambers11-Dec-01 3:45
Chambers11-Dec-01 3:45 
AnswerRe: Is there a round function? Pin
#realJSOP11-Dec-01 4:06
professional#realJSOP11-Dec-01 4:06 
AnswerRe: Is there a round function? Pin
Alvaro Mendez11-Dec-01 4:09
Alvaro Mendez11-Dec-01 4:09 
GeneralRe: Is there a round function? Pin
Chambers11-Dec-01 4:13
Chambers11-Dec-01 4:13 
GeneralC++ operator Pin
Fred/M11-Dec-01 3:22
Fred/M11-Dec-01 3:22 
GeneralRe: C++ operator Pin
Ernest Laurentin11-Dec-01 4:08
Ernest Laurentin11-Dec-01 4:08 
GeneralRe: C++ operator Pin
Alvaro Mendez11-Dec-01 4:15
Alvaro Mendez11-Dec-01 4:15 
GeneralRe: C++ operator Pin
Fred/M11-Dec-01 4:42
Fred/M11-Dec-01 4:42 
GeneralRe: C++ operator Pin
Alvaro Mendez11-Dec-01 5:42
Alvaro Mendez11-Dec-01 5:42 
GeneralRe: C++ operator Pin
Jonathan Gilligan11-Dec-01 4:55
Jonathan Gilligan11-Dec-01 4:55 
GeneralRe: C++ operator Pin
Fred/M11-Dec-01 5:18
Fred/M11-Dec-01 5:18 
GeneralRe: C++ operator Pin
Michael Dunn11-Dec-01 8:00
sitebuilderMichael Dunn11-Dec-01 8: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.