Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++ Assignment Pin
Dragonalex23-May-07 6:07
Dragonalex23-May-07 6:07 
AnswerRe: C++ Assignment Pin
Hamid_RT23-May-07 6:19
Hamid_RT23-May-07 6:19 
AnswerRe: C++ Assignment Pin
eli1502197923-May-07 6:56
eli1502197923-May-07 6:56 
AnswerRe: C++ Assignment Pin
Michael Dunn23-May-07 13:31
sitebuilderMichael Dunn23-May-07 13:31 
GeneralRe: C++ Assignment Pin
Dragonalex23-May-07 16:35
Dragonalex23-May-07 16:35 
GeneralRe: C++ Assignment Pin
Hamid_RT23-May-07 19:35
Hamid_RT23-May-07 19:35 
AnswerRe: C++ Assignment Pin
Dragonalex24-May-07 6:10
Dragonalex24-May-07 6:10 
QuestionCreating bitmap from file raw data Pin
bankai12323-May-07 6:01
bankai12323-May-07 6:01 
I've used the CreateDibSection function to create a DIB for bitmap...

	HWND hWnd = this->GetSafeHwnd();<br />
	HDC hdc = ::GetDC(hWnd);<br />
<br />
	BITMAPINFO	bmpInfo;<br />
<br />
	ZeroMemory(&bmpInfo,sizeof(bmpInfo));<br />
	bmpInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);<br />
	bmpInfo.bmiHeader.biBitCount = 8;<br />
	bmpInfo.bmiHeader.biCompression = BI_RGB;<br />
	bmpInfo.bmiHeader.biSizeImage = 0; // Set to 0 for BI_RGB images<br />
	bmpInfo.bmiHeader.biPlanes = 1;<br />
	bmpInfo.bmiHeader.biHeight = 768;<br />
	bmpInfo.bmiHeader.biWidth = 1024;<br />
	bmpInfo.bmiHeader.biClrUsed = 256;<br />
<br />
	hFrameBitmap = CreateDIBSection(hFrameDC, &bmpInfo, DIB_RGB_COLORS, &pBits, NULL, NULL);


I'm wondering how I can set the 4th parameter to point to a FILE* type which I store my raw pixel data, where pBits must be a LPVOID.

Thanks
QuestionGreat new tool for developers Pin
vtuchin23-May-07 4:05
vtuchin23-May-07 4:05 
Questioncompilling error Pin
cform023-May-07 3:52
cform023-May-07 3:52 
QuestionRe: compilling error Pin
David Crow23-May-07 3:55
David Crow23-May-07 3:55 
AnswerRe: compilling error Pin
Mark Salsbery23-May-07 5:36
Mark Salsbery23-May-07 5:36 
AnswerRe: compilling error Pin
Hamid_RT23-May-07 5:56
Hamid_RT23-May-07 5:56 
QuestionQuestion about WM_DESTROY Pin
KellyR23-May-07 3:27
KellyR23-May-07 3:27 
AnswerRe: Question about WM_DESTROY Pin
James R. Twine23-May-07 3:38
James R. Twine23-May-07 3:38 
GeneralRe: Question about WM_DESTROY Pin
KellyR23-May-07 4:05
KellyR23-May-07 4:05 
QuestionRe: Question about WM_DESTROY Pin
David Crow23-May-07 3:39
David Crow23-May-07 3:39 
JokeRe: Question about WM_DESTROY Pin
Arman S.23-May-07 3:43
Arman S.23-May-07 3:43 
GeneralRe: Question about WM_DESTROY Pin
KellyR23-May-07 4:03
KellyR23-May-07 4:03 
AnswerRe: Question about WM_DESTROY Pin
James R. Twine23-May-07 3:44
James R. Twine23-May-07 3:44 
GeneralRe: Question about WM_DESTROY Pin
David Crow23-May-07 3:46
David Crow23-May-07 3:46 
QuestionC++ newbie here, some help is needed. Pin
C_Zealot23-May-07 3:16
C_Zealot23-May-07 3:16 
AnswerRe: C++ newbie here, some help is needed. Pin
Arman S.23-May-07 3:39
Arman S.23-May-07 3:39 
GeneralRe: C++ newbie here, some help is needed. Pin
C_Zealot23-May-07 12:47
C_Zealot23-May-07 12:47 
AnswerRe: C++ newbie here, some help is needed. Pin
James R. Twine23-May-07 3:43
James R. Twine23-May-07 3:43 

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.