Re: Help Needed on ActiveX EXE winsock worker

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Schmidt" <sss@xxxxxxxxx> wrote in message news:<uXU6hFaSFHA.2932@xxxxxxxxxxxxxxxxxxxx>...
> "J" <mailserv@xxxxxxxxx> schrieb im Newsbeitrag
> news:7ef13fe.0504250509.6ac11df1@xxxxxxxxxxxxxxxxxxxxx
>
> > Is it illegal to pass the requestID from standard EXE to ActiveX EXE?
> At least for the Winsock.OCX it's illegal, to pass the requestID across
> ThreadBoundaries.
>
> > How could I overcome this problem?
> You should use the WinSock-Accept-API directly (on the socket-handles, not
> on some IDs) - that will work Cross-Thread.
>
> Olaf

Thanks for the prompt reply.

However, it would be of great help if you could elaborate more or even
better if you could provide few lines of sample code on it.

Sorry I am not too good in the API, I am using the CSocketMaster class
(Winsock API wrapper) which was downloaded from Web, without any
modification on it.

Thanks.

J.
.