Home > Back-end >  Delphi dynamically create TClientSocket problem
Delphi dynamically create TClientSocket problem

Time:09-26

I want to have a Socket control packets into a DLL, ask how to dynamically create
TClientSocket?
I do
Var
ClientSocket: TClientSocket
.
ClientSocket:=TClientSocket. Create (nil)
But in the ClientSocket. After the Open to a ShowMessage () to send data, do not know how to solve?
Give advice or comments please! Thank you very much!

CodePudding user response:

Can you give a little more code!

CodePudding user response:

I also encountered this problem? How to solve this?

CodePudding user response:

After creation does not need to specify the port and HOST information?

CodePudding user response:

Socket. Connected=True; Success after again hair
  • Related