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

C / C++ / MFC

 
Generalabout using vmr9 Pin
yingkou8-Sep-04 3:29
yingkou8-Sep-04 3:29 
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 
I thought I had this problem solved, but I seem to have hit a problem with a 4 bit field on a byte boundary.

Can anyone suggest a solution to an extra byte being added to the structute. I need everything packed tight.

#pragma pack(1)<br />
<br />
typedef struct{<br />
	char	tc1_w01_month_1_s_	:  4;<br />
	char	tc1_w01_month_10_s_	:  4;<br />
	char	tc1_w01_day_1_s_	:  4;<br />
	char	tc1_w01_day_10_s_	:  4;	// This OK<br />
	char	tc1_w02_reserved1	:  1;<br />
	char	tc1_w02_reserved2	:  1;<br />
	char	tc1_w02_minute_1_s_	:  4;<br />
	char	tc1_w02_minute_10_s_	:  4;	<big>// On byte boundary Problem !!!</big><br />
	char	tc1_w02_hour_1_s_	:  4;<br />
	char	tc1_w02_hour_10_s_	:  2;<br />
	char	tc1_w03_second_0_01_s_	:  4;<br />
	char	tc1_w03_second_0_1_s_	:  4;<br />
	char	tc1_w03_second_1_s_	:  4;<br />
	char	tc1_w03_second_10_s_	:  4;<br />
}TEST_10_tc1;<br />
<br />
#pragma pack()

GeneralRe: Bit Fields - Again Pin
Ryan Binns8-Sep-04 4:16
Ryan Binns8-Sep-04 4:16 
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 

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.