Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CSockets in multiple threads Pin
snodgrass6-Sep-04 5:25
snodgrass6-Sep-04 5:25 
GeneralWritting data to CD Pin
verma-rahul3-Sep-04 1:17
verma-rahul3-Sep-04 1:17 
GeneralRe: Writting data to CD Pin
Member 3076123-Sep-04 2:07
Member 3076123-Sep-04 2:07 
GeneralRe: Writting data to CD Pin
verma-rahul3-Sep-04 2:15
verma-rahul3-Sep-04 2:15 
GeneralRe: Writting data to CD Pin
Member 3076123-Sep-04 2:55
Member 3076123-Sep-04 2:55 
GeneralRe: Writting data to CD Pin
Henry miller3-Sep-04 2:57
Henry miller3-Sep-04 2:57 
GeneralConverting 32 bit bitmap image to 24 bit bitmap image Pin
hasansheik3-Sep-04 0:34
hasansheik3-Sep-04 0:34 
GeneralRe: Converting 32 bit bitmap image to 24 bit bitmap image Pin
Bob Stanneveld3-Sep-04 12:15
Bob Stanneveld3-Sep-04 12:15 
Hello,

The reason that the bitmap is 32 bpp instread of 24 is because of memory alignment.

Pentium processors work faster when data is aligned at 4 bytes (32 bits). Data that isn't aligned at multiple of 32 bits will wreck havoc on the Pentium processor.

The other reason for this alignment is that the most graphics cards don't support true 24 bit color modes. The reason for this is the same as for the Pentium.
Also there are no api's that can copy 3 bytes of memory at once. So for optimizing purposes the momory is aligned at 32 bits.

So you don't need to worry about the 32 bpp since the extra 8 bits are for your own good...

Hope this information was of any help.Smile | :)



A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.


GeneralRe: Converting 32 bit bitmap image to 24 bit bitmap image Pin
Ayman Kouzayha30-Jun-10 14:27
Ayman Kouzayha30-Jun-10 14:27 
GeneralRe: Converting 32 bit bitmap image to 24 bit bitmap image Pin
Bob Stanneveld30-Jun-10 20:16
Bob Stanneveld30-Jun-10 20:16 
GeneralInterprocess communication question... Pin
karam_chand3-Sep-04 0:16
karam_chand3-Sep-04 0:16 
GeneralCSockets Windows 2003 Pin
shiraztk2-Sep-04 23:40
shiraztk2-Sep-04 23:40 
GeneralRe: CSockets Windows 2003 Pin
jan larsen3-Sep-04 1:46
jan larsen3-Sep-04 1:46 
GeneralRe: CSockets Windows 2003 Pin
shiraztk3-Sep-04 2:11
shiraztk3-Sep-04 2:11 
GeneralRe: CSockets Windows 2003 Pin
shiraztk3-Sep-04 20:06
shiraztk3-Sep-04 20:06 
GeneralCFtpConnection::GetFile(…) returns Access is denied Pin
anderslundsgard2-Sep-04 23:26
anderslundsgard2-Sep-04 23:26 
GeneralIn-program Custom Panel through Inheritance Pin
Karel Appel2-Sep-04 23:15
Karel Appel2-Sep-04 23:15 
Questionhow to disable device(better "sound device" ) under 98/me Pin
max_xiayi2-Sep-04 22:47
max_xiayi2-Sep-04 22:47 
GeneralMaking the mouse pointer disappear Pin
Matthias19782-Sep-04 22:44
Matthias19782-Sep-04 22:44 
GeneralRe: Making the mouse pointer disappear Pin
Anonymous2-Sep-04 22:57
Anonymous2-Sep-04 22:57 
GeneralRe: Making the mouse pointer disappear Pin
Antony M Kancidrowski2-Sep-04 22:57
Antony M Kancidrowski2-Sep-04 22:57 
GeneralRe: Making the mouse pointer disappear Pin
Graham Bradshaw2-Sep-04 23:47
Graham Bradshaw2-Sep-04 23:47 
GeneralError message and then application crashing.Help Pin
Raghunandan S2-Sep-04 21:34
Raghunandan S2-Sep-04 21:34 
GeneralRe: Error message and then application crashing.Help Pin
Antony M Kancidrowski2-Sep-04 23:01
Antony M Kancidrowski2-Sep-04 23:01 
QuestionMFC Application in MFC DLL possible? Pin
RonnyS2-Sep-04 21:33
RonnyS2-Sep-04 21:33 

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.