It is currently November 29th, 2020, 8:01 pm

Alternative .NET Plugin Templates for C#, VB, F# and VC++

Share and get help with Plugins and Addons
User avatar
Aragas
Posts: 64
Joined: December 24th, 2012, 6:56 pm
Location: Russia, Moscow

Re: Alternative .NET Plugin Templates for C#, VB, F# and VC+

Post by Aragas »

poiru wrote: Is this specific to the updated SDK or did you have this issue with the old SDK as well?
After update. Never had this before
Naiqet
Posts: 3
Joined: January 19th, 2014, 4:52 pm

Re: Alternative .NET Plugin Templates for C#, VB, F# and VC+

Post by Naiqet »

poiru wrote:The C# plugin SDK has been updated to incorporate most of the change here (excluding the use of a C++ CLR wrapper plugin): https://github.com/rainmeter/rainmeter-plugin-sdk

I'll try to get the VB/F# stuff there later on.

Thanks again Naiqet!
No problem, Poiru. I see you fixed the issue Aragas pointed out as well. I did not know that different rm values can be passed in Reload. The VB/F# stuff might be hard to implement without VC++ wrapper because as far as I'm aware they have more limited interop features. It was one of the main reasons I chose to do things this way.
Aragas wrote:Now i have a big trouble - i'm trying to load .dll from my skin path (e.g. Skins\VKPlayer\NAudio.dll), but i receive a error KERNELBASE.dll - Cannot load type from "Plugin.Plugin". Nevermind.
Could anyone show me how to right load a .dll from any path? :sly:

My previous methods don't work for some reason. If anyone want to see my "koolcode", see https://github.com/Aragas/VKPlugin_V2/tree/unstable-new-wrapper
Skins are here (use VKPlayer) https://github.com/Aragas/VKPlugin_V2/tree/unstable-new-wrapper/Rainmeter%20Sample
I'll try to look at this when I have time.

Edit: I have looked at the code, but since you're not using VC++ wrapper, your DLL lookup should not had been affected. I could look further into this, but first I would like to confirm one thing. I know that if VC++ wrapper is used you can debug code using break points. Is it possible to do the same if the library is modified by DllExporter?
User avatar
Aragas
Posts: 64
Joined: December 24th, 2012, 6:56 pm
Location: Russia, Moscow

Re: Alternative .NET Plugin Templates for C#, VB, F# and VC+

Post by Aragas »

Naiqet wrote: I'll try to look at this when I have time.

Edit: I have looked at the code, but since you're not using VC++ wrapper, your DLL lookup should not had been affected. I could look further into this, but first I would like to confirm one thing. I know that if VC++ wrapper is used you can debug code using break points. Is it possible to do the same if the library is modified by DllExporter?
Yes. Break points work.
I have figured out what cause this bug.
This plugin is a experiment - implement in one measure different skins. So, the problem is there. I have removed all others functions. Seems to work. Something was just changed in plugin-rainmeter communication. Maybe i used a hack or something like that. Maybe i'm just a good, kool C# coder :D