05-06-2015 12:37 AM
You could probably also use various workarounds, but I can't say I would consider them elegant:
05-18-2015 08:27 PM
You can also check here.
Mike...
05-19-2015 11:55 AM
@mikeporter wrote:
You can also check here.
Good to know (apart from the fact that I have no idea which class to look into to get access to these functions).
What is the advantage (if any) of using .NET versus a direct call to kernel32.dll?
05-19-2015 02:19 PM
05-19-2015 04:52 PM - edited 05-19-2015 04:52 PM
The advantage of .Net is that it is generally easier to develop (if you know where to look for what class and methods to use) than fiddling with Call Library Nodes which will generally do bad things to LabVIEW and your app if they aren't perfectly correctly configured and setup. And it may sometimes appear to work without crash but still corrupt something and you may only run into that problem when you deployed the application in a remote application where you have to take an airplaine to get there! 🙂
But if you know Call Library Nodes well and how to correctly use them, then it's definitely an advantage to go the direct kernel32.dll path as this will not invoke an extra 100MB .Net runtiime system for a simple OS call.