Hi there;-)
I have the following struct:
struct foo {
union {
unsigned __int64 ui64;
char[8] c;
};
};
what i now want to make possible is...
foo a;
foo b;
int c;
foo d;
a = "abcdefg";
b = 12;
d = (foo) c;
so i think i need to globally overload the cast operator, isn't it?
i know how to overload the cast-operator to convert from my struct to
$type, but how do i do it the other way 'round?
thanx for your help,
-.rhavin;)