Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionListview using WIN32 API Pin
priyank_ldce2-Nov-06 5:11
priyank_ldce2-Nov-06 5:11 
AnswerRe: Listview using WIN32 API Pin
David Crow2-Nov-06 5:40
David Crow2-Nov-06 5:40 
GeneralRe: Listview using WIN32 API Pin
priyank_ldce2-Nov-06 5:50
priyank_ldce2-Nov-06 5:50 
GeneralRe: Listview using WIN32 API Pin
David Crow2-Nov-06 6:04
David Crow2-Nov-06 6:04 
GeneralRe: Listview using WIN32 API Pin
led mike2-Nov-06 6:50
led mike2-Nov-06 6:50 
GeneralRe: Listview using WIN32 API Pin
David Crow2-Nov-06 8:12
David Crow2-Nov-06 8:12 
AnswerRe: Listview using WIN32 API Pin
Michael Dunn2-Nov-06 8:55
sitebuilderMichael Dunn2-Nov-06 8:55 
QuestionBit alignment Problem with VS 2005 Maybe Pin
Andy2022-Nov-06 4:44
Andy2022-Nov-06 4:44 
This worked in VS 2003, but I cant seem to understand what is going wrong here. I am trying to specify all the fields in a message, 1 bit 14 bits etc. But the size is wrongConfused | :confused:

This structure should have a size of 20 bytes, but during debugging its 22 bytes with I ceck its length, Why?

#pragma pack(1)
typedef struct{
	unsigned long	a1_t04_word_0_reserved_133_0	:	1;
	unsigned long	a1_t04_word_0_spare_134_1	:	1;
	unsigned long	a1_t04_word_0_mrk_typ_status	:	1;
	unsigned long	a1_t04_word_0_sq_g_status	:	1;
	unsigned long	a1_t04_word_0_sq_lev_g_status	:	4;
	unsigned long	a1_t04_word_0_vol_grx_status	:	4;
	unsigned long	a1_t04_word_0_marker_vol_status	:	4;
	unsigned long	a1_t04_word_1_vol_max_status	:	4;
	unsigned long	a1_t04_word_1_sidvol_status	:	4;
	unsigned long	a1_t04_word_1_clp_status	:	2;
	unsigned long	a1_t04_word_1_saturn_relay_enable_status	:	1;
	unsigned long	a1_t04_word_1_agc_status	:	1;
	unsigned long	a1_t04_word_1_sq_lev_m_status	:	4;
	unsigned long	a1_t04_word_2_mod_depth_status	:	4;
	unsigned long	a1_t04_word_2_srq_cfg_status	:	2;
	unsigned long	a1_t04_word_2_reserved_144_5	:	10;
	unsigned short	a1_t04_word_3_reserved_148_0;
	unsigned long	a1_t04_word_4_reserved_152_0	:	6;
	unsigned long	a1_t04_word_4_af_in_lv_status	:	6;
	unsigned long	a1_t04_word_4_pset_sel_status	:	4;
	unsigned long	a1_t04_word_5_err_vol_status	:	4;
	unsigned long	a1_t04_word_5_spare_156_4	:	1;
	unsigned long	a1_t04_word_5_err_beep_status	:	3;
	unsigned long	a1_t04_word_5_reserved_154_7	:	8;
	unsigned long	a1_t04_word_6_reserved_159_0	:	8;
	unsigned long	a1_t04_word_6_reserved_160_8	:	8;
	unsigned long	a1_t04_word_7_hold_time_status	:	4;
	unsigned long	a1_t04_word_7_scan_time_status	:	4;
	unsigned long	a1_t04_word_7_reserved_163_8	:	1;
	unsigned long	a1_t04_word_7_7_bit_pad_162_9	:	7;
	unsigned long	a1_t04_word_8_spare_170_0	:	10;
	unsigned long	a1_t04_word_8_reserved_169_10	:	4;
	unsigned long	a1_t04_word_8_time_master_slave_status	:	2;
	unsigned long	a1_t04_word_9_spare_176_0	:	12;
	unsigned long	a1_t04_word_9_reserved_175_12	:	1;
	unsigned long	a1_t04_word_9_sat_ext_pre_status	:	1;
	unsigned long	a1_t04_word_9_sat_prem_ptt_status	:	1;
	unsigned long	a1_t04_word_9_sat_atec_trsp_status	:	1;
}a1_VUHF1_T04;
#pragma pack(0)

AnswerRe: Bit alignment Problem with VS 2005 Maybe Pin
Waldermort2-Nov-06 4:56
Waldermort2-Nov-06 4:56 
GeneralRe: Bit alignment Problem with VS 2005 Maybe Pin
Andy2022-Nov-06 5:20
Andy2022-Nov-06 5:20 
GeneralRe: Bit alignment Problem with VS 2005 Maybe Pin
Mark Salsbery2-Nov-06 8:04
Mark Salsbery2-Nov-06 8:04 
GeneralRe: Bit alignment Problem with VS 2005 Maybe Pin
Andy2022-Nov-06 22:29
Andy2022-Nov-06 22:29 
QuestionReally need your help(someting aobut the directions which shoule I choose!!) Pin
wanlim08172-Nov-06 4:42
wanlim08172-Nov-06 4:42 
AnswerRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
David Crow2-Nov-06 4:49
David Crow2-Nov-06 4:49 
GeneralRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
wanlim08172-Nov-06 5:16
wanlim08172-Nov-06 5:16 
GeneralRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
David Crow2-Nov-06 5:32
David Crow2-Nov-06 5:32 
GeneralRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
wanlim08172-Nov-06 5:43
wanlim08172-Nov-06 5:43 
GeneralRe: Really need your help(someting aobut the directions which shoule I choose!!) Pin
David Crow2-Nov-06 5:54
David Crow2-Nov-06 5:54 
QuestionEnumerating files in folder Pin
Imtiaz Murtaza2-Nov-06 4:37
Imtiaz Murtaza2-Nov-06 4:37 
AnswerRe: Enumerating files in folder Pin
David Crow2-Nov-06 4:46
David Crow2-Nov-06 4:46 
Questionhelp Pin
Kiethnt2-Nov-06 4:13
Kiethnt2-Nov-06 4:13 
AnswerRe: help Pin
Cedric Moonen2-Nov-06 4:56
Cedric Moonen2-Nov-06 4:56 
AnswerRe: help Pin
normanS2-Nov-06 6:37
normanS2-Nov-06 6:37 
Questionhelp Pin
Kiethnt2-Nov-06 4:11
Kiethnt2-Nov-06 4:11 
QuestionConvert Time to CString? Pin
bosfan2-Nov-06 4:05
bosfan2-Nov-06 4:05 

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.