Tread und UpdateData
-
Wie kann ich aus meinem Tread herraus ein CStatic beschreiften?
Irgenwie stürtzt immer alles ab, wenn ich UpdateData aufrufe! Was gibt es da für eine alternative?//.h file ... static void myTread(void * p); CStatic m_ctrlStatic; // Controll vom Static CString m_csStatic; // value vom static ... //.cpp file ... _beginthread(myTread(0, this); // starten meines treads ... void CMyTabDlgProben::myTread(void * p) { CMyKlasse *_this = (CMyKlasse*)p; _this->m_csFilter = "Test"; // das soll ausgegeben werden if(_this->GetSafeHwnd() != NULL) _this->UpdateData(false); // hier stürtzt alles ab aber ohne passiert einfach nix }
-
Hallo !
Vielleicht hilft dir ja erstmal das hier weiter.
http://www.c-plusplus.net/forum/viewtopic.php?t=5819&highlight=thread+updatedata
http://www.c-plusplus.net/forum/viewtopic.php?t=5882&highlight=thread+updatedata
http://www.c-plusplus.net/forum/viewtopic.php?t=42730&highlight=thread+updatedata
http://www.c-plusplus.net/forum/viewtopic.php?t=5099&highlight=thread+updatedata
http://www.c-plusplus.net/forum/viewtopic.php?t=3972&highlight=thread+updatedata
http://www.c-plusplus.net/forum/viewtopic.php?t=3891&highlight=thread+updatedata
http://www.c-plusplus.net/forum/viewtopic.php?t=3259&highlight=thread+updatedata
http://www.c-plusplus.net/forum/viewtopic.php?t=3236&highlight=thread+updatedata
http://www.c-plusplus.net/forum/viewtopic.php?t=1068&highlight=thread+updatedataTschüss