O
Oren
Hi,
I use the Winsock ActiveX in VS C++.
the problem is that I am unable to catch all the exceptions.
for instance if I have a server who listens at port 1111 and I try to
connect to the wrong port or if the server is offline I get error
messagebox "connection is forcefully rejected". it seems that I can't
catch that message somehow.
here is the code I use:
TRY
{
WinSockControl.SetProtocol(0) ; // TCP/IP
WinSockControl.Connect(COleVariant("127.0.0.1"),
COleVariant(long(1321))) ;
}
CATCH(CException, e)
{
MSGDialog("ddddddddddddd");
e->Delete();
}
END_CATCH
Does anyone know how to catch everything?
I use the Winsock ActiveX in VS C++.
the problem is that I am unable to catch all the exceptions.
for instance if I have a server who listens at port 1111 and I try to
connect to the wrong port or if the server is offline I get error
messagebox "connection is forcefully rejected". it seems that I can't
catch that message somehow.
here is the code I use:
TRY
{
WinSockControl.SetProtocol(0) ; // TCP/IP
WinSockControl.Connect(COleVariant("127.0.0.1"),
COleVariant(long(1321))) ;
}
CATCH(CException, e)
{
MSGDialog("ddddddddddddd");
e->Delete();
}
END_CATCH
Does anyone know how to catch everything?