LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about LabVIEW DLL support and Unicode

Solved!
Go to solution

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.

Veni Vidi Duci
0 Kudos
Message 1 of 5
(3,732 Views)

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?

Message 2 of 5
(3,714 Views)

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.

Veni Vidi Duci
0 Kudos
Message 3 of 5
(3,679 Views)
Solution
Accepted by topic author DB_IQ

@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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 4 of 5
(3,667 Views)

I think I will just go with the non-unicode functions. Thanks.

Veni Vidi Duci
0 Kudos
Message 5 of 5
(3,569 Views)