Click here to Skip to main content
15,911,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I push out my app Pin
Larsson8-Sep-04 2:18
Larsson8-Sep-04 2:18 
Generalconvert bmp to 2-D array Pin
hanivoo8-Sep-04 1:49
hanivoo8-Sep-04 1:49 
GeneralRe: convert bmp to 2-D array Pin
Bob Stanneveld8-Sep-04 6:29
Bob Stanneveld8-Sep-04 6:29 
GeneralCannot find header file compile time Pin
intrigued8-Sep-04 1:40
intrigued8-Sep-04 1:40 
GeneralRe: Cannot find header file compile time Pin
P-Rex8-Sep-04 3:19
P-Rex8-Sep-04 3:19 
GeneralRe: A problem with multi line edit box and check box Pin
David Crow8-Sep-04 5:49
David Crow8-Sep-04 5:49 
GeneralBit Fields - Again Pin
sweep1238-Sep-04 1:29
sweep1238-Sep-04 1:29 
GeneralRe: Bit Fields - Again Pin
Ryan Binns8-Sep-04 4:16
Ryan Binns8-Sep-04 4:16 
Use int rather than char for the first 32 bits (all except the last 4 fields), and short rather than char for the rest.

It's a good idea to use the largest possible data type size when using bitfields (ie. favour ints/longs). If you need to prevent padding at the end, then by all means use the smaller data types (ie. short/char).

Also, be careful about using signed values in bitfields. Generally, it's a good idea to use unsigned values (eg. unsigned int) because then you can guarantee how the compiler will treat it. If the values are signed, then you have to know whether the compiler sign-extends or zero-extends the value when you're using it in an expression.

Hope this helps,

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralODBC Driver for Access - database password Pin
Member 12584918-Sep-04 1:23
Member 12584918-Sep-04 1:23 
GeneralRe: ODBC Driver for Access - database password Pin
Arsalan Malik8-Sep-04 1:53
Arsalan Malik8-Sep-04 1:53 
GeneralRe: ODBC Driver for Access - database password Pin
Member 12584918-Sep-04 2:34
Member 12584918-Sep-04 2:34 
GeneralRe: ODBC Driver for Access - database password Pin
Ryan Binns8-Sep-04 4:21
Ryan Binns8-Sep-04 4:21 
GeneralRe: ODBC Driver for Access - database password Pin
Member 12584918-Sep-04 21:12
Member 12584918-Sep-04 21:12 
Generalcopy selected text to my application Pin
pma8-Sep-04 0:56
pma8-Sep-04 0:56 
GeneralRe: copy selected text to my application Pin
jan larsen8-Sep-04 1:26
jan larsen8-Sep-04 1:26 
GeneralRe: copy selected text to my application Pin
pma8-Sep-04 2:04
pma8-Sep-04 2:04 
GeneralRe: copy selected text to my application Pin
jan larsen8-Sep-04 3:45
jan larsen8-Sep-04 3:45 
GeneralRe: copy selected text to my application Pin
pma8-Sep-04 3:52
pma8-Sep-04 3:52 
GeneralKind of ListCtrl with two columns Pin
jensall8-Sep-04 0:27
jensall8-Sep-04 0:27 
GeneralRe: Kind of ListCtrl with two columns Pin
David Crow8-Sep-04 5:52
David Crow8-Sep-04 5:52 
GeneralExamine Memory Locations Pin
sweep1237-Sep-04 23:49
sweep1237-Sep-04 23:49 
GeneralRe: Examine Memory Locations Pin
Neville Franks8-Sep-04 0:15
Neville Franks8-Sep-04 0:15 
GeneralRe: Examine Memory Locations Pin
sweep1238-Sep-04 0:27
sweep1238-Sep-04 0:27 
GeneralRe: Examine Memory Locations Pin
Neville Franks8-Sep-04 0:46
Neville Franks8-Sep-04 0:46 
GeneralVC++ Link error Pin
Anonymous7-Sep-04 23:48
Anonymous7-Sep-04 23:48 

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.