Ok, here goes, IŽll post a shorter version of quasi code. The real version is a bit to big.
Code:
typedef struct thing {
char foo[50];
char bar[50];
}
struct test thething;
insert_values_into_thing(struct *thingie) {
strcpy(thingie->foo, "ksksk");
..
}
int main windowsfunction {
insert_values_into_thing(&thething);
}
BOOL CALLBACK windowcallbackfunc(..) {
/*This is where the problem lies, even if thing (that is global) has values earlier in the
execution here its totaly blank, and the following message box displays absolutely nada.*/
MessageBox(NULL,thing.foo,...);
}
do_something_with_thing(struct *thing ) {
..
}
I hope that made any sense