Juha Manninen wrote:

I never used OutputDebugString() in Delphi but I guess the main challenge is to detect if Lazarus IDE is present while the program is running. The rest should be easy.

procedure OutputDebugString(Msg: string);
begin
  if <IDE_Is_Present> then
    IDEMsgIntf.IDEMessagesWindow.AddMsg(Msg,'',-1);
end;


So, how to test it?

There should be no need to test for the IDE. Just write messages to some named IPC channel, and have the IDE (or whatever other "log viewer" application) listen on the other side. IIRC this is how OutputDebugString works, it uses a named pipe for communication.

Sergei

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to