I am working on console application in visual studio 2008.
I want to read a value from console window which is of form "T_414_A" which is a macro internal to the code and is defined as some hexadecimal value. how to get that macro value?
the code which i tried is as follows:
typedef unsigned long UINT32;
typedef unsigned char UINT8;
void * text_data_vp;
UINT32 * bit_format_ref;
UINT8 Size;
printf("Enter the dynamic_data_vp value: ");
scanf("%d", &text_data_v p);
bit_format_ref = ((UINT32 *)&text_data_vp );
Size = HmStrLngTable1[*bit_format_ref];
from the value i get i need to get some other value from the "HmStrLngTable1 " array?
I want to read a value from console window which is of form "T_414_A" which is a macro internal to the code and is defined as some hexadecimal value. how to get that macro value?
the code which i tried is as follows:
typedef unsigned long UINT32;
typedef unsigned char UINT8;
void * text_data_vp;
UINT32 * bit_format_ref;
UINT8 Size;
printf("Enter the dynamic_data_vp value: ");
scanf("%d", &text_data_v p);
bit_format_ref = ((UINT32 *)&text_data_vp );
Size = HmStrLngTable1[*bit_format_ref];
from the value i get i need to get some other value from the "HmStrLngTable1 " array?
Comment