04-27-2018 12:27 PM
I have a LabVIEW project that utilizes a .NET dll. There are .NET constructor, .NET invoke nodes, .NET property nodes and Reg Event Callback functions throughout. Using this project, I have successfully built executable and everything works fine. But then, .NET dll developer needed to fix a bug in the dll, and provided me with new dll. So then, do I have to rebuild executable, or can I just replace the dll and fix to the dll would apply to executable?
Thanks!
Rieko
04-27-2018 01:30 PM
In the past I have simply replaced the dll- this assumes it is the same filename and the function calls names and parameter are the same.
-AK2DM
04-27-2018 03:14 PM
The simple answer to the question posed in the Subject line is clearly "Start Swearing!".
Is it easy to simply install the new DLL and see if it works? I can imagine scenarios where it would work, and scenarios when it would fail. I thought the "idea" of a Dynamic Link Library is that it did not have to be part of the Executable, so could change independently, but there's nothing like an Experiment to verify if this is the case in your situation ...
Bob Schor
04-28-2018 05:01 PM
As has been said, you *should* be able to just replace the DLL and all will be happy. But this does come with a lot of assumptions such as the methods did not add or remove parameters. Try it. If you run into issues, go through the rebuild process.