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

C / C++ / MFC

 
Questionhow to calculate the Date? thanks Pin
qqworm2-Jun-05 2:37
qqworm2-Jun-05 2:37 
AnswerRe: how to calculate the Date? thanks Pin
Cedric Moonen2-Jun-05 2:41
Cedric Moonen2-Jun-05 2:41 
GeneralRe: how to calculate the Date? thanks Pin
qqworm2-Jun-05 3:08
qqworm2-Jun-05 3:08 
GeneralRe: how to calculate the Date? thanks Pin
Cedric Moonen2-Jun-05 3:22
Cedric Moonen2-Jun-05 3:22 
GeneralRe: how to calculate the Date? thanks Pin
qqworm2-Jun-05 4:37
qqworm2-Jun-05 4:37 
GeneralRe: how to calculate the Date? thanks Pin
ThatsAlok2-Jun-05 18:46
ThatsAlok2-Jun-05 18:46 
GeneralProblem with ListCtrl while using Manifest file for XP Look Pin
Neeranjan2-Jun-05 1:29
Neeranjan2-Jun-05 1:29 
GeneralGrayscale Image Display Pin
Reiste2-Jun-05 0:51
Reiste2-Jun-05 0:51 
Hi.

This problem has been driving me mad for too long now. I have a 640x480 char array of data. I need to display that in grayscale in a Window (currently using a CFrameWnd). I can't copy it to a 640x480x3 array and use SetDIBitsToDevice - that isn't fast enough (it's for a video application).

At the moment, I am using SetDIBitsToDevice with BITMAPINFO.biBitCount set to 8. The image displays correctly, except not in Grayscale - it's in a psychedelic 256-color palette mapping of some sort - I assume Window's default.

Try as I might, I can't get it to use a grayscale palette. I can't even create a palette from scratch - maybe if I could, I could get this to work. I've read Chris Becke's article on Bitmaps, and checked out forums all over - but nothing seems quite related to what I want to do. I can't believe that it is this difficult!

If anyone has an answer, or can recommend an article that would help... please do!
GeneralRe: Grayscale Image Display Pin
Chris Losinger2-Jun-05 3:55
professionalChris Losinger2-Jun-05 3:55 
GeneralDeflateRect Pin
Dennis L2-Jun-05 0:33
Dennis L2-Jun-05 0:33 
GeneralRe: DeflateRect Pin
Stlan2-Jun-05 0:56
Stlan2-Jun-05 0:56 
GeneralRe: DeflateRect Pin
ThatsAlok2-Jun-05 1:10
ThatsAlok2-Jun-05 1:10 
GeneralRe: DeflateRect Pin
Stlan2-Jun-05 1:13
Stlan2-Jun-05 1:13 
GeneralRe: DeflateRect Pin
ThatsAlok2-Jun-05 1:23
ThatsAlok2-Jun-05 1:23 
GeneralRe: DeflateRect Pin
ThatsAlok2-Jun-05 1:07
ThatsAlok2-Jun-05 1:07 
GeneralVC6 and Virtual PC Pin
Davy Mitchell2-Jun-05 0:22
Davy Mitchell2-Jun-05 0:22 
GeneralRe: VC6 and Virtual PC Pin
Rutger Ellen2-Jun-05 1:07
Rutger Ellen2-Jun-05 1:07 
GeneralImport C++ function in C Programs Pin
phijophlip2-Jun-05 0:09
phijophlip2-Jun-05 0:09 
Generalseekg Pin
mcsherry1-Jun-05 23:19
mcsherry1-Jun-05 23:19 
GeneralRe: seekg Pin
Cedric Moonen1-Jun-05 23:30
Cedric Moonen1-Jun-05 23:30 
GeneralRe: seekg Pin
mcsherry1-Jun-05 23:50
mcsherry1-Jun-05 23:50 
GeneralI Can't IE Key press... But. I want Active X control's Key press Pin
seredius1-Jun-05 23:16
seredius1-Jun-05 23:16 
GeneralRe: I Can't IE Key press... But. I want Active X control's Key press Pin
Weiye Chen1-Jun-05 23:43
Weiye Chen1-Jun-05 23:43 
GeneralRe: I Can't IE Key press... But. I want Active X control's Key press Pin
xcavin2-Jun-05 1:57
xcavin2-Jun-05 1:57 
GeneralBackground Color Pin
leifmikael1-Jun-05 23:15
leifmikael1-Jun-05 23:15 

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.