| | |
wxwidgets App: how to get external socket input?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2008
Posts: 2
Reputation:
Solved Threads: 0
My pointy-headed management told me to drop development of a wxPython app that was working 90% and go back to C++ with wxWidgets. I have it working functionally, but integrating with
the company's existing MFC code seemed easier to run this app
as a separate process using sockets to communicate.
BUT ... I can't get the socket-using thread to yield enough time (despite using wxThread::Yield, wxThread:
leep, wxWakeUpIdle(),
and various combinations of these tricks) for the small GUI I want
to display to update! The window itself shows up blank until I break
the socket connection with the controlling program. At that point
it fills in.
I did look at the 'how to integrate MFC with wxWidgets' section in The Book but (erroneously?) thought this would be easier. Is there something obvious I'm missing? The MFC I'd have to integrate with it pretty crufty itself and I'm afraid I'd break something messing with it.
Thanks much for any suggestions whatsoever!
the company's existing MFC code seemed easier to run this app
as a separate process using sockets to communicate.
BUT ... I can't get the socket-using thread to yield enough time (despite using wxThread::Yield, wxThread:
leep, wxWakeUpIdle(),and various combinations of these tricks) for the small GUI I want
to display to update! The window itself shows up blank until I break
the socket connection with the controlling program. At that point
it fills in.
I did look at the 'how to integrate MFC with wxWidgets' section in The Book but (erroneously?) thought this would be easier. Is there something obvious I'm missing? The MFC I'd have to integrate with it pretty crufty itself and I'm afraid I'd break something messing with it.
Thanks much for any suggestions whatsoever!
![]() |
Other Threads in the C++ Forum
- Previous Thread: New to C++
- Next Thread: Need help with overload functions
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





