Not sure if this was accepted first attempt as I cleverly mailed from the
wrong email address!
Hi - after pulling out a lot of hair, I'm hoping someone can take pity on a
poor, struggling programmer who needs some help J
I'm not a beginner with Delphi but I'm definitely not an expert either
Hi - after pulling out a lot of hair, I'm hoping someone can take pity on a
poor, struggling programmer who needs some help J
I'm not a beginner with Delphi but I'm definitely not an expert either so
I'm really struggling to create a DLL-based WSocket client that does what I
need.
I've spen
Hi, Wilfried - thanks for replying :-)
I have an existing DLL that was written to use TClientSocket via a data
module. It has a kind of message pump but it works in reverse... it has a
timer thread that uses postmessage to trigger the main app to call a
ReadData function which checks the socket f
Hi, Wilfried
I'm pleased to say that I've made good progress with the system so far but
I'm not sure how to best implement server alternation.
Very simply, the current system works with a main server and a fail-over
server.
All initial connections are made to the main server (I have this part
wo
Hi, All
Ok - first the good news... despite tearing out some hair and losing a good
few hours of sleep, my new TWSocket-based DLL with the worker thread is
working brilliantly :-)
Now for the bad news... I am getting some strange and intermittent
"corruption" of function return values.
I'm not s
Hi, Wilfried - thanks for the explanation - I've been looking at the code
for hours and just couldn't see the cause. I've now changed the code to
this which should solve the problem if I understood correctly:
function ReadMessage: PAnsiChar; stdcall;
var
Note: AnsiString;
begin
EnterCriticalS
[twsocket] DLL implementation advice (or example)...
Adam Burgoyne wrote:
> I've now changed the
> code to this which should solve the problem if I understood correctly:
>
> function ReadMessage: PAnsiChar; stdcall; var
> Note: AnsiString;
> begin
> EnterCriticalSection(