How to use DLL (C#) in VBS for the Add-Ons menu.
Hello,
I want to use some DLLs I developed in C# in my script VBS using for the Add-Ons menu. I'm able to use them through VBS without problem but the DLLs are not released when the process is ended.
Because this behavior, I'm not able to replace the DLL (dll is in use). I must close E3, replace and register the DLL and after that, restart E3. But I lose precious time during the E3 opening again and again according to the size of my project.
I would like to know if someone has already work with DLL and VBS and if Yes, if it is possible to have some examples on how to use them correctly.
Maybe a bug with E3 and the release of the DLLs.
Thanks
Pat
Was this Helpful?
-
C# DLL + VBScript? Are you serious?!
Maybe it will be better write standalone .exe application instead this.
--
E3.Series COM programmer (C#, WPF + MVVM pattern)Was this Helpful?
0 -
Hello alex.buraykin,
Yes, I'm very serious and I used this way because I work with "Triggered-Scripts" and "Add-Ons Menus" using in some case the same functionalities. And I don't know if it's possible to work with EXE with triggered-scripts. Also, I don't want to duplicate my code twice and work with VBS and DLL for Triggered-scripts and EXE for Add-Ons. My customer also has a strong security about the EXE files and when it's possible, i prefer to don't use EXE.
Maybe this way is not the best but in my case, it is.This way works very well but I had to change my way to develop, debug and test my DLLs with E3.
Was this Helpful?
0 -
about a year ago someone at zuken told me that e3 can now handle exe files for triggered scripts. i've not tried it so i'm not sure if it really works.
in your VBScript, can you identify the process the DLL is running and just kill it?
debugging VBScript sucks.Was this Helpful?
0 -
That's why i'm using Visual Studio and write .NET standalone apps
Was this Helpful?
0
Please sign in to leave a comment.
Comments
4 comments