Click here to Skip to main content
16,011,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RegisterWindowClass and resources from a DLL Pin
Mark Salsbery30-Mar-08 11:23
Mark Salsbery30-Mar-08 11:23 
GeneralRe: RegisterWindowClass and resources from a DLL Pin
Randor 30-Mar-08 11:47
professional Randor 30-Mar-08 11:47 
GeneralRe: RegisterWindowClass and resources from a DLL Pin
Mark Salsbery30-Mar-08 11:56
Mark Salsbery30-Mar-08 11:56 
Questionprint .BMP file to printer ... how ? Pin
Member 435006729-Mar-08 11:38
Member 435006729-Mar-08 11:38 
AnswerRe: print .BMP file to printer ... how ? Pin
Member 435006729-Mar-08 14:02
Member 435006729-Mar-08 14:02 
GeneralRe: print .BMP file to printer ... how ? Pin
Mark Salsbery29-Mar-08 14:24
Mark Salsbery29-Mar-08 14:24 
AnswerRe: print .BMP file to printer ... how ? Pin
Hamid_RT7-Apr-08 2:29
Hamid_RT7-Apr-08 2:29 
QuestionUsing winsock, how can I tell if a system is listening for a connection on a port before I call connect? Pin
TragicComic29-Mar-08 10:39
TragicComic29-Mar-08 10:39 
I've got an application that runs on several computers which handles simultaneous video capture (to be clear, each system runs it's own copy of the capture software). I've got another application that runs on another computer and is used to control capture software that is running on the other systems.

Currently, the capture software uses the winsock call "listen" to listen for incoming connections on a specific port. When I want to connect to the capture systems from the control system, I use the winsock call "connect" to make the connection. Currently, I cycle through a list of possible capture machines and attempt to connect to each one, however, the capture systems may or may not be running the capture software. Because connect doesn't allow me to specify a timeout, this connection process can take an extremely long time if even a single capture system is powered down or isn't running the software.

So my question is:

Is there a way to check to see if a system is listening for a connection before I call connect? Or, is there a better way to handle establishing connections between my machines.

Thanks,
Adam Kraver
AnswerRe: Using winsock, how can I tell if a system is listening for a connection on a port before I call connect? Pin
Moak29-Mar-08 13:29
Moak29-Mar-08 13:29 
GeneralReuse projects created in Visual Studio 6 in Visual C++ 2008 Express Edition issue Pin
gedinfo29-Mar-08 8:47
gedinfo29-Mar-08 8:47 
GeneralRe: Reuse projects created in Visual Studio 6 in Visual C++ 2008 Express Edition issue Pin
Randor 29-Mar-08 10:07
professional Randor 29-Mar-08 10:07 
Generalprecompiled header file Pin
George_George29-Mar-08 4:55
George_George29-Mar-08 4:55 
GeneralRe: precompiled header file Pin
Mark Salsbery29-Mar-08 7:24
Mark Salsbery29-Mar-08 7:24 
GeneralRe: precompiled header file Pin
George_George29-Mar-08 22:47
George_George29-Mar-08 22:47 
GeneralRe: precompiled header file Pin
rp_suman29-Mar-08 23:04
rp_suman29-Mar-08 23:04 
GeneralRe: precompiled header file Pin
George_George29-Mar-08 23:33
George_George29-Mar-08 23:33 
GeneralRe: precompiled header file Pin
rp_suman30-Mar-08 0:59
rp_suman30-Mar-08 0:59 
GeneralRe: precompiled header file Pin
George_George30-Mar-08 1:05
George_George30-Mar-08 1:05 
GeneralRe: precompiled header file Pin
Mark Salsbery30-Mar-08 7:59
Mark Salsbery30-Mar-08 7:59 
GeneralRe: precompiled header file Pin
George_George30-Mar-08 23:12
George_George30-Mar-08 23:12 
GeneralRe: precompiled header file Pin
Mark Salsbery31-Mar-08 5:28
Mark Salsbery31-Mar-08 5:28 
GeneralRe: precompiled header file Pin
George_George31-Mar-08 18:27
George_George31-Mar-08 18:27 
Questionsteps reqd to connect from VC++9 to oracle? Pin
Kashineni29-Mar-08 4:47
Kashineni29-Mar-08 4:47 
AnswerRe: steps reqd to connect from VC++9 to oracle? Pin
rp_suman29-Mar-08 6:52
rp_suman29-Mar-08 6:52 
QuestionProblem of MENUBAR? Pin
Le@rner29-Mar-08 2:15
Le@rner29-Mar-08 2:15 

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.