Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Finding PCI cards.... Pin
Daniel Turini10-Dec-02 4:29
Daniel Turini10-Dec-02 4:29 
GeneralRe: Finding PCI cards.... Pin
Trollslayer10-Dec-02 8:36
mentorTrollslayer10-Dec-02 8:36 
GeneralRe: Finding PCI cards.... Pin
Iain Clarke, Warrior Programmer10-Dec-02 4:28
Iain Clarke, Warrior Programmer10-Dec-02 4:28 
GeneralRe: Finding PCI cards.... Pin
Nick Parker10-Dec-02 4:30
protectorNick Parker10-Dec-02 4:30 
GeneralRe: Finding PCI cards.... Pin
jhwurmbach10-Dec-02 5:31
jhwurmbach10-Dec-02 5:31 
GeneralCWinThread problems... Pin
RobJones10-Dec-02 4:12
RobJones10-Dec-02 4:12 
GeneralRe: CWinThread problems... Pin
Alvaro Mendez10-Dec-02 4:57
Alvaro Mendez10-Dec-02 4:57 
GeneralRe: CWinThread problems... Pin
RobJones10-Dec-02 5:15
RobJones10-Dec-02 5:15 
Alvaro Mendez wrote:
You're building UI thread, right? Are you sure they need UI threads, or can you just go with worker threads?

I am using sockets inside these threads.. I was told/heard/read that when ever you are using sockets in a seperate thread you have to use a UI thread because of the message pump.. Basically I have a server app that is going to sit on hundereds of machines.. once every 30 seconds I spawn UI threads to make contact with all the other servers. Once the connection is made (or not made) the servers exchange status and the UI thread exits.. It's really quite simple.. I do all the error checking on the network for failures etc.. if anything goes wrong I post a quit message.. the longest a thread should stay alive should be around 30 seconds.. thats why I put the timer in the thread..

I'll take a look into thread pools (never used them) but they sound nice Smile | :)

I could put a message pump into the thread.. Do you think this may help the thread process messages if something is tying it up? I can post code if you think that would help..

Thanks,
Rob
GeneralRe: CWinThread problems... Pin
valikac10-Dec-02 7:50
valikac10-Dec-02 7:50 
GeneralRe: CWinThread problems... Pin
Alvaro Mendez10-Dec-02 9:06
Alvaro Mendez10-Dec-02 9:06 
GeneralAVI files in windows 2000 Pin
daphna10-Dec-02 3:42
daphna10-Dec-02 3:42 
GeneralRich Edit and Decimal Tab Stops Pin
xanatos10-Dec-02 3:33
xanatos10-Dec-02 3:33 
Generalpositioning CPropertySheet dialog Pin
mariuszpopiolek10-Dec-02 2:36
mariuszpopiolek10-Dec-02 2:36 
GeneralRe: positioning CPropertySheet dialog Pin
Dominik Reichl10-Dec-02 2:51
Dominik Reichl10-Dec-02 2:51 
GeneralRe: positioning CPropertySheet dialog Pin
mariuszpopiolek10-Dec-02 7:46
mariuszpopiolek10-Dec-02 7:46 
GeneralCFileDialog trouble Pin
Andrew Medvedev10-Dec-02 1:27
Andrew Medvedev10-Dec-02 1:27 
GeneralRe: CFileDialog trouble Pin
User 665810-Dec-02 1:31
User 665810-Dec-02 1:31 
GeneralRe: CFileDialog trouble Pin
Andrew Medvedev10-Dec-02 1:35
Andrew Medvedev10-Dec-02 1:35 
GeneralRe: CFileDialog trouble Pin
Nitron10-Dec-02 3:17
Nitron10-Dec-02 3:17 
GeneralRe: CFileDialog trouble Pin
Andrew Medvedev10-Dec-02 22:45
Andrew Medvedev10-Dec-02 22:45 
GeneralRe: CFileDialog trouble Pin
Nitron11-Dec-02 6:39
Nitron11-Dec-02 6:39 
GeneralWindow flickering in Taskbar Pin
Ricky_TheBard10-Dec-02 1:16
Ricky_TheBard10-Dec-02 1:16 
GeneralRe: Window flickering in Taskbar Pin
Richard Green10-Dec-02 1:56
Richard Green10-Dec-02 1:56 
GeneralRe: Window flickering in Taskbar Pin
Ricky_TheBard10-Dec-02 6:26
Ricky_TheBard10-Dec-02 6:26 
GeneralCListCtrl Column width Pin
Paolo Vernazza10-Dec-02 1:13
Paolo Vernazza10-Dec-02 1:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.