Delphi source sample for WFX plugin
Moderators: Hacker, petermad, Stefan2, white
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
Delphi source sample for WFX plugin
Hi,
I try to create my own plugin but the sample is only in C++.
Does somebody have the delphi source of a very simple plugin to understand how it works ?
I try to create my own plugin but the sample is only in C++.
Does somebody have the delphi source of a very simple plugin to understand how it works ?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
Its rather simple, read the through the help file, to see the parameter list on each function. Also in Delphi, make sure to mark the functions to use the stdcall callback method, or is it the cdecl, cant remember.
I can understand that u want to see some code, but its best to read the docs, than guess from the code imho.
Added L8er:
Remember to export the functions, like this...
Code: Select all
function SomeFunc(SomeParam: Integer); stdcall;
Added L8er:
Remember to export the functions, like this...
Code: Select all
exports
FsInit, FsFindFirst, FsFindNext, FsFindClose, FsMkDir, FsGetFile, FsDeleteFile, FsRemoveDir, FsGetDefRootName;
Of all the planets I've been to, this one is my favorite.
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
OK then, try to look at this, the compiled binary is accepted by TCmd but since i dropped the idea (guess why) its full of bugs
.
Some of the functions called in this project (the 1s starting with FL_) are from another file, just ignore/delete those lines.
http://users.cybercity.dk/~bfy1097/_upload/RegCmdTC.dpr

Some of the functions called in this project (the 1s starting with FL_) are from another file, just ignore/delete those lines.
http://users.cybercity.dk/~bfy1097/_upload/RegCmdTC.dpr
Of all the planets I've been to, this one is my favorite.
- André Martin
- Senior Member
- Posts: 245
- Joined: 2003-02-05, 15:46 UTC
- Location: Dresden, Germany
The Ext2+Reiser fs plugin is written in Delphi, comes with source and is a good starting point...
Browse the web with the HTTP SmartBrowserPlugin
Check your mails with the POP3/SMTP EmailPlugin!
Check your mails with the POP3/SMTP EmailPlugin!
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
You can find it on this page with the plugin writer's guide:
http://www.ghisler.com/plugins.htm#filesys
http://www.ghisler.com/plugins.htm#filesys
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Be careful, this is a plugin under GPL because it uses GPLed source code, so your plugin needs to be open source too if you base it on this plugin!André Martin wrote:The Ext2+Reiser fs plugin is written in Delphi, comes with source and is a good starting point...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
- fabiochelly
- Power Member
- Posts: 603
- Joined: 2003-02-05, 12:03 UTC
- Location: Rambouillet, France
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
In Total Commander 5.51, the command will be cm_UnloadPlugins
Add it to a button, then click it every time you want to unload the plugins - this will unload all running plugins! Please note that Lister plugins will only be unloaded after all Lister windows are closed (or not showing any lister plugins).
Add it to a button, then click it every time you want to unload the plugins - this will unload all running plugins! Please note that Lister plugins will only be unloaded after all Lister windows are closed (or not showing any lister plugins).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com