Home > Back-end >  Dynamic DLL cannot OnRead cannot be performed. Use the socket in solution
Dynamic DLL cannot OnRead cannot be performed. Use the socket in solution

Time:09-24

Seek a solution,,, DLL encapsulation socket, found onread cannot perform! And when the EXE from information does not perform onread function,,

The constructor TConnection. Create;
The begin
Inherited;
ClientSocket:=TClientSocket. Create (nil);
ClientSocket. Host:='127.0.0.1;
ClientSocket. Port:=10095;
ClientSocket. ClientType:=ctNonBlocking;
ClientSocket. OnRead:=csocketRead;
ClientSocket. Active:=True;
FsSocket:=ClientSocket;
end;


Procedure TConnection. CsocketRead (Sender: TObject; Sockets: TCustomWinSocket);
The begin
OutputDebugStringA (PChar (' 123123123123123 '));
end;

CodePudding user response:

You want to make sure that the server sends the data to the client?

CodePudding user response:

reference 1st floor linuxpingwangping response:
you want to make sure that the server sends the data to the client?


Sure,,, I have a log returns, this,

CodePudding user response:

And I get the same client code to an EXE in it can trigger onread events

CodePudding user response:

Really does not perform, you set a serial or parallel, would the jam
  • Related