Search found 124 matches

by GianT
Mon Jun 20, 2005 3:58 am
Forum: C++ Development
Topic: Programming with threads and sockets
Replies: 17
Views: 3909

Hmmm I'm getting it slowly, I just made this modification in my code and it works: switch(event.GetSocketEvent()) { case wxSOCKET_INPUT : wxMessageBox("wxSOCKET_INPUT\n"); break; case wxSOCKET_LOST : wxMessageBox("wxSOCKET_LOST\n"); break; case wxSOCKET_CONNECTION : wxMessageBox("wxSOCKET_CONNECTION...
by GianT
Mon Jun 20, 2005 3:47 am
Forum: C++ Development
Topic: Programming with threads and sockets
Replies: 17
Views: 3909

Errr, I just manage to create and make a thread run...Actually, I wanted to understand the behaviour of wxSocket first, as I read somewhere that it was useless to make threads to accept socket connexions (or something like that). I don't understand at all the behaviour of wxSockets, for example, whe...
by GianT
Mon Jun 20, 2005 3:38 am
Forum: C++ Development
Topic: Programming with threads and sockets
Replies: 17
Views: 3909

I managed to create a client and make a connection to the server. But now, my problem is that I made event in the event_table so that in each socket event, a message box tells me about it. But I only got the message for the first connexion and not for the others! What can be the problem? Here are pa...
by GianT
Thu Jun 16, 2005 4:30 pm
Forum: C++ Development
Topic: Programming with threads and sockets
Replies: 17
Views: 3909

Here is one stuff which seems to work, though I don't know how to handle connections for the moment: wxSocketServer *m_server; wxIPV4address addr; addr.LocalHost(); addr.Service(3050); m_server = new wxSocketServer(addr, wxSOCKET_WAITALL); if (! m_server->Ok()) { wxMessageBox("Could not listen at th...
by GianT
Thu Jun 16, 2005 3:18 pm
Forum: C++ Development
Topic: Programming with threads and sockets
Replies: 17
Views: 3909

Woww, I didn't expect so many answers :shock: , I'm surprised, thx :D . But I'm gonna be more precise. I would like to deal with those problems one after the other. First of all, I would like an example of how creating sockets with wxSocketServer and Client. I mean, when I was in school, we add exam...
by GianT
Wed Jun 15, 2005 8:18 pm
Forum: C++ Development
Topic: Programming with threads and sockets
Replies: 17
Views: 3909

Programming with threads and sockets

Hi :!: I want my application to perform both client and server actions. I've done a timer and associated a function in which I will put the code of the client part, and I guess that I have to make a thread to put the code of the server part. I would just like to have a complete example of sending an...
by GianT
Thu May 19, 2005 3:23 pm
Forum: General Development
Topic: List of installed Apllications of Windows
Replies: 8
Views: 1981

List of installed Apllications of Windows

Hi guys, I would like to know how I can get the list of the applications installed on a computer using windows XP. The goal of this is to prevent some users from using them, or allow them to do it. Thx in advance
by GianT
Wed May 04, 2005 7:44 pm
Forum: wxDev-C++
Topic: how can I open a Frame from another Frame ?
Replies: 12
Views: 7072

You should post this again because I don't really understand what you mean. There seem to be missing words in your post. Plus you say that you now know why it opens 2 or 3 frames, so if you know why (I didn't understand why by the way) how can't you solve the problem? Try posting with a safe languag...
by GianT
Fri Apr 29, 2005 3:09 pm
Forum: C++ Development
Topic: [resolved]Error at end of wxbuttonclik function
Replies: 7
Views: 1352

Yes thanks it works with mysql_init(NULL) :D . That's strange because I always used it this way.
by GianT
Fri Apr 29, 2005 12:57 pm
Forum: C++ Development
Topic: [resolved]Error at end of wxbuttonclik function
Replies: 7
Views: 1352

Yes it seems so. Indeed, I just tried to comment the mysql part and it works well... But when I let even the mysql_init and the mysql_close (without all the requests) I have the problem... I am fed up with that I don't understand why this s**t bugs :@@@@@ :evil:
by GianT
Fri Apr 29, 2005 12:48 pm
Forum: C++ Development
Topic: [resolved]Error at end of wxbuttonclik function
Replies: 7
Views: 1352

I tried with Close but I still got the problem. Notice that the problem is still present where I don't write anything at the end (I mean when I just drop Destroy and don't try to close the wxdialog)...
by GianT
Thu Apr 28, 2005 9:29 pm
Forum: C++ Development
Topic: [resolved]Error at end of wxbuttonclik function
Replies: 7
Views: 1352

[resolved]Error at end of wxbuttonclik function

Hi, I encounter a strange error when running my program. I have no error on compiling. In fact, I have a function associated with the event coming up when clicking on an OK button that I added and then I close the window (by the method Destroy();), and I just close the window when the user clicks on...
by GianT
Thu Apr 28, 2005 2:48 pm
Forum: wxDev-C++
Topic: how can I open a Frame from another Frame ?
Replies: 12
Views: 7072

It seems that ShowModal does not work. I looked my code, and it is Show(TRUE) which is written... :D If you want to open a new frame and don't want to open the same frame again, you have to change prjMicrocobFrm *Fcheclientfrm = new prjMicrocobFrm(NULL); by NameOfNewFrame *Fcheclientfrm = new NameOf...
by GianT
Wed Apr 27, 2005 7:43 pm
Forum: wxDev-C++
Topic: [resolved] Show a error message from a dialog box
Replies: 7
Views: 1891

Well I found what I was searching for. It was so simple...but as I didn't know, I couldn't do it obviously... It takes only one line or 2. When I check whether the condition is verified or not, I just write this: - If it's ok: wxMessageBox("User added.", "Error",wxOK, this); Then I close the dialog ...
by GianT
Wed Apr 27, 2005 7:05 pm
Forum: wxDev-C++
Topic: how can I open a Frame from another Frame ?
Replies: 12
Views: 7072

Try to use ShowModal() instead of Show(TRUE)