B
ben
Hi guyz,
i hav a structure like this:
struct Column
{
char *fieldName;
int fieldType;
void *value;
bool nullFlag;
};
Column r;
how do i initialize the field void * value?
if i do something like this,it prints some junk value!!
char *str="ben";
r1.value=str;
cout<<r1.value;
Also i have to pass this initialized structure to some function that
can display it.At that time i might face even more trouble.Isn't it?
bye,
ben
i hav a structure like this:
struct Column
{
char *fieldName;
int fieldType;
void *value;
bool nullFlag;
};
Column r;
how do i initialize the field void * value?
if i do something like this,it prints some junk value!!
char *str="ben";
r1.value=str;
cout<<r1.value;
Also i have to pass this initialized structure to some function that
can display it.At that time i might face even more trouble.Isn't it?
bye,
ben