Home » U++ Library support » U++ Library : Other (not classified elsewhere) » GUI and Thread (Call GUI fonction into thread)
Re: GUI and Thread [message #47063 is a reply to message #47061] |
Fri, 25 November 2016 10:21   |
|
Hi !
OK it's work.
I have just a little problem, i want into my thread write into the LineEdit the data received in a socket connexion.
If i have in .h file:
static TcpSocket connexion;
and
void Processus( bool *boucle, LineEdit *l )
{
while( boucle )
{
char ServerResponse[10];
ConnexionTCP::connexion.Get(ServerResponse, 10);
GuiLock __;
...
}
}
I have undefined error in linking in other method of my class:
void ConnexionTCP::fermerConnexion( void )
{
if( connexion.IsOpen() )
connexion.Close();
}
If i remove "static", i have no error but i can't acces to connexion into my thread.
I thing it's probably a C++ syntax error but can you help me ?
Thank you !!!
|
|
|
Goto Forum:
Current Time: Sat Aug 23 21:38:39 CEST 2025
Total time taken to generate the page: 0.02894 seconds
|