rascal
asked on
DCOM : Connecting to a remote server
The client program I am working on contains the function CoCreateInstanceEx to connect to the server. This works great as long as the server machine is running.
However, if the system is down, the function never returns and a message box pops up saying the server is busy.
Is there some way to assign a timeout when calling this function? Or is there another function you usually call
before this one to ensure the server system is up? Thanks for your help.
However, if the system is down, the function never returns and a message box pops up saying the server is busy.
Is there some way to assign a timeout when calling this function? Or is there another function you usually call
before this one to ensure the server system is up? Thanks for your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.