Pointer to severals Dialogs
-
Hi, I need to have a pointer to a dialog window from a thread. I made a global pointer variable to a dialog window and it works. But Is it possible to do a pointer which can pointer to several dialogs (one at the same time)? I need to pointer to the active dialog from the thread(the active dialog window it's not the same all the time). I try "void* pointer" but doesn't work, (there'is a error in the reference to the pointer inside the thread). Regards. Regards, Javier
-
Hi, I need to have a pointer to a dialog window from a thread. I made a global pointer variable to a dialog window and it works. But Is it possible to do a pointer which can pointer to several dialogs (one at the same time)? I need to pointer to the active dialog from the thread(the active dialog window it's not the same all the time). I try "void* pointer" but doesn't work, (there'is a error in the reference to the pointer inside the thread). Regards. Regards, Javier
You must access the pointer value inside a critical section. Otherwise you risk having data corruption. Regards, João Paulo Figueira Embedded MVP