Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

UNICODE not supported?

I would like to use the graphing control from Measurement Studio VC++ but my projecct must support UNICODE due to some common code that is shared between the PC app and a PDA. Attempting to compile after adding the NI classes reveals "#error UNICODE not supported." Is there any plan to add UNICODE support to measurement studio or a way that I can work around this?

Mike.
0 Kudos
Message 1 of 3
(3,638 Views)
Hi Mike,

The error you are seeing is a result of NI Measurement Studio code looking for Unicode directives. Because it is not supported, it throws a compile time error. There are a few other Discussion Forum posts regarding this issue. I do not believe there is a workaround possible. That is to say, it would require you not to use the Measurment Studio Graph Controls.

I am unaware of future plans to implement Unicode support. However, it is has been requested by several customers.

Thanks,

Tyler T.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,631 Views)
You can use the graph control in your application by using the auto-generated wrappers that visual studio generates for the activex control. You can find a bunch of examples that use the auto-generated wrappers here. Visual Studio .NET 2003 does not generate the correct wrappers, but Visual Studio 6.0 does. If you have VC 6.0, you can use that to generate the wrappers and then use those wrapper files in your other applications.

The CNi classes do not support Unicode, so you can remove those from your project.

I hope this helps.
Bilal Durrani
NI
0 Kudos
Message 3 of 3
(3,627 Views)