Are plugins written in .NET possible?
Moderators: white, Hacker, petermad, Stefan2
Are plugins written in .NET possible?
I think i know the answer to this question but since i could not find anything clear on the matter, i'm asking: are ActiveX dlls (i.e. from .NET) supported by TC as plugins?
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
Well, ActiveX DLLs are not usual DLLs so i'm pretty sure if there is no special support from TC, they won't work.MVV wrote:If your DLL acts as usuan DLL
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
I didn't test it but there seems to be a solution:
http://ghisler.ch/board/viewtopic.php?p=90334#90334
totalcmd.net:DotNet Wrapper 0.4 beta
http://ghisler.ch/board/viewtopic.php?p=134745#134745
Regards
Holger
http://ghisler.ch/board/viewtopic.php?p=90334#90334
totalcmd.net:DotNet Wrapper 0.4 beta
http://ghisler.ch/board/viewtopic.php?p=134745#134745
Regards
Holger
That is not a problem. The required functions can be exported. I think the problem is that the way .NET DLLs communicate with the world outside of them is different than the way classic DLLs do, so if TC does not support directly communicating with them...MVV wrote:TC supports only DLLs that export functions realizing TC plugins interface
...something like this could be a solution!HolgerK wrote:totalcmd.net:DotNet Wrapper 0.4 beta
Many thanks HolgerK. I'll give it a try.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
Now that i think of it, there must be a way (in recent VS.NET versions at least) to construct a .NET DLL than can be registered as a COM component. Maybe it will work...
I'll post the results of my research here for future reference...
I'll post the results of my research here for future reference...
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
I suggest not to wait and start to write it:) later you (or someone else) can write simple wrapper that will allow to connect your plugin to TC.MariusC wrote:Something new regarding support of .NET? I'm highly interested in doing a plugin for reading .MSI (the existing one are limited and not very useable)
I think this should help you to convert your managed DLL to mixed that contains managed code and unmanaged exported functions. You need just to export functions described in TC plugin interface manual.
Try the following:
- In the .NET Project options, Compile, check the "Register for COM interop" checkbox
- In the .NET Project options, Application, perhaps the "Make Assembly COM visible" checkbox should be checked.
Assuming you have the methods/properties required by TC in the DLL, maybe these two options will do the work.
If you try it, please let us know how it went.
- In the .NET Project options, Compile, check the "Register for COM interop" checkbox
- In the .NET Project options, Application, perhaps the "Make Assembly COM visible" checkbox should be checked.
Assuming you have the methods/properties required by TC in the DLL, maybe these two options will do the work.
If you try it, please let us know how it went.
- Wanderer -
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
Unfortunately this WFX .Net wrapper is buggy and no longer maintained.HolgerK wrote:totalcmd.net:DotNet Wrapper 0.4 beta
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
I just came across http://www.codeproject.com/KB/files/ManagedTCPLugin.aspx which was new to me.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more