LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unicode file and folder names

I understand that LabWindows/CVI does not officially, "support Unicode," but is there anything I can do to at least let my LabWindows/CVI application open files and folders named with Unicode characters?  I expect that some of my international customers will name their files and folders with Unicode characters. 
0 Kudos
Message 1 of 2
(3,398 Views)

Many thanks to Jervin Justin for his repies:

 

MSDN: WideCharToMultiByte

http://msdn.microsoft.com/en-us/library/ms776420(VS.85).aspx

Header: Declared in Winnls.h; include Windows.h.

Library: Use Kernel32.lib

Also, I would look at the following article which may be helpful in the future.

MSDN: Unicode and Character Set Functions

http://msdn.microsoft.com/en-us/library/ms776415(VS.85).aspx

One additional note...

I found out that CVI's stdlib.h includes the following function:

wcstombs

And you can call this directly in CVI as long as you include "stdlib.h".

Thanks and have a great day

Jervin Justin

Applications Engineer

National Instruments

http://www.ni.com/support

 

0 Kudos
Message 2 of 2
(3,389 Views)