Page 1 of 1

C++ bridge for C# plugins

Posted: 28 Sep 2025, 18:22
by KRtek™
https://github.com/OpenSalamander/salam ... ssions/178

I find it easier to write the plugins in C#...

Example plugin that hosts managed WinForms C# .NET application.
PR: https://github.com/OpenSalamander/salamander/pull/177 or branch: https://github.com/KRtkovo-eu-AI/salama ... emo_plugin
2025-09-28 08_12_36-plugins - Open Salamander 5.0 (x64) (Administrator).png
2025-09-28 08_12_36-plugins - Open Salamander 5.0 (x64) (Administrator).png (28.14 KiB) Viewed 46038 times
2025-09-28 08_13_04-plugins - Open Salamander 5.0 (x64) (Administrator).png
2025-09-28 08_13_04-plugins - Open Salamander 5.0 (x64) (Administrator).png (30.99 KiB) Viewed 46038 times


Example of the usage - Json Viewer plugin: https://github.com/KRtkovo-eu-AI/salama ... nViewerNET (which is refactored this application: https://github.com/KRtkovo-eu/JsonViewe ... Salamander )
2025-09-28 15_37_12-temp - Open Salamander 5.0 (x64) (Administrator).png
2025-09-28 15_37_12-temp - Open Salamander 5.0 (x64) (Administrator).png (29.1 KiB) Viewed 46038 times
2025-09-28 15_37_02-temp - Open Salamander 5.0 (x64) (Administrator).png
2025-09-28 15_37_02-temp - Open Salamander 5.0 (x64) (Administrator).png (37.48 KiB) Viewed 46038 times
2025-09-28 15_37_27-.png
2025-09-28 15_37_27-.png (54.08 KiB) Viewed 46038 times

Re: C++ bridge for C# plugins

Posted: 28 Sep 2025, 20:14
by AD7
Nice! Is it compatible with AS 4.0?

Sorry, but I can't see images.

Image

Re: C++ bridge for C# plugins

Posted: 28 Sep 2025, 22:11
by KRtek™
The only thing that will block the currently compiled examples is this code which will require Salamander 5.0

https://github.com/KRtkovo-eu-AI/salama ... o.cpp#L108
    // this plugin is made for the latest Salamander version - check it
    if (SalamanderVersion < LAST_VERSION_OF_SALAMANDER)
    { // we block the older versions
        MessageBox(salamander->GetParentWindow(),
                   REQUIRE_LAST_VERSION_OF_SALAMANDER,
                   PluginNameEN, MB_OK | MB_ICONERROR);
        return NULL;
    }

C++ bridge for C# plugins could be used even for 4.0 and older, if plugin is compiled with that version set.

Re: C++ bridge for C# plugins

Posted: 03 Oct 2025, 19:06
by AD7
Thanks.

Sooo, is there an AS 5.0 build with most of the AS 4.0 plugins ready for use? :roll:

Re: C++ bridge for C# plugins

Posted: 04 Oct 2025, 11:12
by KRtek&#8482;
AD7 wrote: 03 Oct 2025, 19:06 Thanks.

Sooo, is there an AS 5.0 build with most of the AS 4.0 plugins ready for use? :roll:
KRtekTM on Github wrote:In one email I wrote to @janrysavy that I cannot guarantee 100% code quality in the features I started working on (as was shown by the slowdown in application startup after implementing tabbed panels), so I am inclined not to mix the original source code and changes prepared completely using artificial intelligence. That is why I decided to make a fork for brave users - it has bugs and it may take some time to fix them.

It will be called Open Salamander: Samandarin (samandarin is the natural toxin secreted by fire salamander, symbolizing a spicy, daring twist — just like my AI-crafted changes).
It's published: https://github.com/KRtkovo-eu-AI/salama ... ndarin-0.1

Image

Re: C++ bridge for C# plugins

Posted: 06 Oct 2025, 18:27
by AD7
Fine work.
Thanks.

--
That .PDB files (as jsonviewer.pdb) are not needed? Only for debug?

Re: C++ bridge for C# plugins

Posted: 06 Oct 2025, 18:30
by KRtek&#8482;
Yeah just for debugging, it's possible that I didn't delete all of them when preparing the release (it was a little chaos :lol: ).

Re: C++ bridge for C# plugins

Posted: 06 Oct 2025, 18:32
by AD7
And finally, an important question: Is it for daily use or just for testing? :D

Re: C++ bridge for C# plugins

Posted: 06 Oct 2025, 18:34
by KRtek&#8482;
Open Salamander: Samandarin remains an intentionally experimental fork—its AI-implemented features are actively evolving, may surface unexpected issues, and are best explored by advanced, adventurous users who can tolerate work-in-progress behavior.

But I am using it on daily basis.

Re: C++ bridge for C# plugins

Posted: 06 Oct 2025, 18:53
by AD7
Thanks for clarifying.

---
BTW. One file (ZIP.SPL) is reported:
https://www.virustotal.com/gui/file/c52 ... 9071c0a091

Re: C++ bridge for C# plugins

Posted: 06 Oct 2025, 18:55
by KRtek&#8482;
ok need to check that, there are no code changes in ZIP plugin.

Re: C++ bridge for C# plugins

Posted: 07 Oct 2025, 16:09
by AD7

Re: C++ bridge for C# plugins

Posted: 07 Oct 2025, 19:34
by KRtek&#8482;
I tried to check the ZIP.SPL compiled from the main (original code from Open Salamander repo) and it's reported too. Unfortunately I don't have another dev environment to run the build (and check if my main computer is infected and therefore infecting other files, OR the issue is in the original code itself).