05-31-2016 02:00 PM
Hello,
I have a question about LabVIEW and DLL function calls.
I am using a DLL (sorry, I cannot share it) that was written in C. It was written to support Unicode and non-Unicode function calls.
If the Unicode function is valid then FunctionNameW is called, otherwise FunctionNameA is called.
I am building some VI's to access the library. I have the regular FunctionNameA functions working.
My question is, does LabVIEW support the FunctionNameW Unicode function versions, and if so is it even necessary if LabVIEW already works with the standard function call?
Am I being redundant or do I need to build in Unicode support?
The first time I tried to test the Unicode functions I got an error, and I am guessing this is a system setting.
Thank you for your time in advance.
Solved! Go to Solution.
05-31-2016 07:31 PM
LV and Unicode don't play so nicely together. For what does exist, check it out here: https://decibel.ni.com/content/docs/DOC-10153
If you can get things working without Unicode and it's working well, do you need the Unicode implementation as well for your application to make sense? Or, can it work well without Unicode?
06-01-2016 12:43 PM
I don't think I HAVE to implement the Unicode, but I want to if I can.
For what I am doing, I almost think it doesn't matter. But I wanted to know if it could be used.
06-01-2016 04:32 PM
@DB_IQ wrote:I don't think I HAVE to implement the Unicode, but I want to if I can.
For what I am doing, I almost think it doesn't matter. But I wanted to know if it could be used.
The short answer, is "yes, you can do it". However, it can open up a new can of worms. If you aren't careful, problems and complications relating to this can even spread to other projects that aren't using Unicode! Best not to summon this monster unless there is absolutely no other way to do the job.
06-15-2016 09:40 AM
I think I will just go with the non-unicode functions. Thanks.