Im using Securebridge with Rad Studio 10.3. When i try to create OnMessage event for TScWebSocketClient the incorrect module declaration error appear.
I also tried declaring my own function and creating the onmessage event in form constructor but i get this error: [ilink32 Error] Error: Unresolved external '__fastcall TForm1::WSSTestMessage(System::TObject *, System::DynamicArray<unsigned char>, Scwebsocketclient::TScWebSocketMessageType, bool)' referenced from ...\WIN32\DEBUG\MAIN.OBJ
The interesting thing is sometimes the application do compile but OnMessage event doesnt work.
Is it possible to solve these problems somehow?
incorrect module declaration
Re: incorrect module declaration
This is a known problem of the C++ Builder compiler, and we can't influence it. As a workaround, you can change TArray<System.Byte> to TBytes and assign the event handler in code at run-time instead of assigning it at design-time.