Link to home
Start Free TrialLog in
Avatar of rascal
rascalFlag for United States of America

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.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial