//PLEASE HELP -- HELP!!!
// HOW I CAN GET ACCESS FROM THE FUNCTION func TO THE
// MEMBERS OF THE STRUCT tagB, WHAT SHOULD I PASS TO
// FUNCTION?? THANK YOU!!
typedef struct tagB
{
int len ;
int nWidth ;
int nHeight;
} B;
typedef struct tagBIT
{
B bmiHeader;
}BIT;
void func( struct tagBITMAPINFO bi);
void main( void )
{
B bih;
BITMAPINFO *bi;
bih.len = 25;
bih.nWidth = 35;
bih.nHeight = 45;
func( *bi );
}
void func( struct tagBIT bi)
{
printf( "TEST: Print from the function: %d... \n \n"
}
// HOW I CAN GET ACCESS FROM THE FUNCTION func TO THE
// MEMBERS OF THE STRUCT tagB, WHAT SHOULD I PASS TO
// FUNCTION?? THANK YOU!!
typedef struct tagB
{
int len ;
int nWidth ;
int nHeight;
} B;
typedef struct tagBIT
{
B bmiHeader;
}BIT;
void func( struct tagBITMAPINFO bi);
void main( void )
{
B bih;
BITMAPINFO *bi;
bih.len = 25;
bih.nWidth = 35;
bih.nHeight = 45;
func( *bi );
}
void func( struct tagBIT bi)
{
printf( "TEST: Print from the function: %d... \n \n"
}