MadJik Posted January 23, 2007 Share Posted January 23, 2007 Hi, namespace EffectName { [GuidAttribute("270DCBF1-CE42-411e-9885-162E2BFA8265")] // <== THIS LINE ??? public class EffectName I'm wondering if this line is important in the plugin.cs file. If I delete it, it doesn't seem to affect the DLL's creation. Is that used somewhere (i.e. for DLL registration?) Thanks for answer(s) Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Bob Posted January 23, 2007 Share Posted January 23, 2007 http://fr.wikipedia.org/wiki/GUID Quote No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio Link to comment Share on other sites More sharing options...
MadJik Posted January 23, 2007 Author Share Posted January 23, 2007 Ok for that definition, it's like I thought. But how important is it for a built plugin for PDN? For now, I'm duplicating a source folder to create a new plugin. It means I'm using the same GUID for several DLLs. Since a while, I delete the GUID. What is recommended (for PDN)? Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Bob Posted January 23, 2007 Share Posted January 23, 2007 IIRC it identifies differents applications / dll to ensure there is no duplicates. Try to search in MSDN. Quote No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio Link to comment Share on other sites More sharing options...
Bob Posted January 24, 2007 Share Posted January 24, 2007 Rick, could you provide any quick explanation on it? Quote No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio Link to comment Share on other sites More sharing options...
Rick Brewster Posted January 25, 2007 Share Posted January 25, 2007 I was recommending authors use this for awhile in order to establish an effect's identity. At some point the effect loader, if it comes across two plugins with the same name, will attempt to resolve identity based on this GUID. If two plugins have the same GUID, only the "newest" one will actually be added to the UI. However, this is really only important when we (meaning me/Tom) release a plugin ZIP file that will eventually be integrated in to Paint.NET. That way both the "built-in" version and the DLL don't end up both showing up in the UI. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.