Help Needed on ActiveX EXE winsock worker



Hi,

I am trying to create a ActiveX EXE that wrap the Winsock API
functions. In my standard EXE, there is a Server socket listening for
client connection. Once there is a connection request, the standard
EXE will create new instances of the ActiveX EXE and use the socket in
the ActiveX EXE to connect to the client.

I am using CSocketMaster winsock API class in my ActiveX EXE. When I
call the CSocketMaster.Accept and pass the requestID from standard
EXE, I got this error saying "Scket operation on nonsocket". Is it
illegal to pass the requestID from standard EXE to ActiveX EXE?

How could I overcome this problem?

Thanks for any help.

J.
.



Relevant Pages

  • Re: Classes With a Form
    ... > I have an Standard EXE that calls and ActiveX EXE. ... The class is created by the Standard EXE. ... expose properties for the Standard EXE to use, ... it should populate the data controls when it shows the form, ...
    (microsoft.public.vb.general.discussion)
  • Re: Embedding a VB 6 standard EXE application in a .NET forns appl
    ... I converted the standard exe to ActiveX exe ... I need to get the app embedded inside the client application ... > ActiveX/COM component and then use it. ...
    (microsoft.public.dotnet.general)
  • Re: The best way to yield processor to other users for long-runnin
    ... I would like to use the Standard EXE, but the problem I have is my main ... control I used so that users can connect to my program. ... Another question I have is how to run the ActiveX exe. ... if you have a single ActiveX EXE containing multiple threads ...
    (microsoft.public.vb.general.discussion)
  • Re: Method ~ of object ~ failed, Error Code: -2147417848
    ... I have two aplpications, one is a Standard EXE, the other an ActiveX EXE. ... I have though of creating a setup package and resintalling the app, or reinstalling the MDAC, ... I have some junk in my references. ...
    (microsoft.public.vb.general.discussion)
  • Re: The best way to yield processor to other users for long-runnin
    ... This is why I recommend using multiple invocations of a Standard EXE Paul. ... In the case of an ActiveX EXE, if multiple users access it at the same time ... > application can process the request from user 2. ...
    (microsoft.public.vb.general.discussion)

Loading