I can't understand one thing. I Write WFX-plugin in Borland Delphi, and it is necessary for me to show some information in TC FTP toolbar.
So, my problem is here. When i compile and run my plugin with this code (it is just sample):
Code: Select all
...
MyLogProc:TLogProc;
...
function FsInit(PluginNr:integer;pProgressProc:tProgressProc;pLogProc:tLogProc;pRequestProc:tRequestProc):integer; stdcall;
Begin
PluginNum:=PluginNr;
MyLogProc:=pLogProc;
MyLogProc (PluginNum,MSGTYPE_DETAILS,'Bla-bla-bla');
Result:=0;
end;
Code: Select all
...
MyLogProc:TLogProc;
...
function FsInit(PluginNr:integer;pProgressProc:tProgressProc;pLogProc:tLogProc;pRequestProc:tRequestProc):integer; stdcall;
Begin
PluginNum:=PluginNr;
MyLogProc:=pLogProc;
MyLogProc (PluginNum,MSGTYPE_CONNECT,'Bla-bla-bla');
Result:=0;
end;
Yeap, my plugin doesn't connect somewhereDo NOT call LogProc with MSGTYPE_CONNECT if your plugin does not require connect/disconnect! If you call it with MsgType==MSGTYPE_CONNECT, the function FsDisconnect will be called (if defined) when the user presses the Disconnect button.


Help me to understand, where a mistake.