Skip to content
Advertisement

SendMessage only send the *first* character of the string

I am using the following python code to send String to a RAD Studio C++ Builder built application:

JavaScript

It is perfectly find the opponent application and SendMessage sends data.

My problem: It only sends the 1st character of the string. So instead of: "This is a message to signal..." , it only sends "T".

I am sure that I am overlooking something trivial, but I could not found it.

Advertisement

Answer

To support all may run into the same task/issue, the working “receive” code (RAD Studio C++ builder) is:

JavaScript

Just to be complete, this goes to the header file, below ‘protected’:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement