Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

a problem about Variant

hello,
 
what does VARIANT mean?How can I use it in VC++?
 
Who can give me some details about VARIANT?
 
thanks.

帖子被nicolasdai在09-26-2006 04:10 AM时编辑过了

0 Kudos
Message 1 of 4
(4,901 Views)
Variant data do not conform to a specific data type and can contain attributes. LabVIEW represents variant data with the variant data type. The variant data type differs from other data types because it stores the control or indicator name, information about the data type from which you converted, and the data itself, which allows LabVIEW to correctly convert the variant data type to the data type you want. Use the Variant functions to create and manipulate variant data. You can convert flattened data and LabVIEW data to variant data and convert variant data to LabVIEW data. The variant data type allows you to store attributes of the data. An attribute is information about the data that you define and the variant data type stores. For example, if you want to know the time when a piece of data was created, you can store the data as variant data and add an attribute called Time to store the time string. The attribute data can be of any type. You also can delete or retrieve attributes from variant data.
0 Kudos
Message 2 of 4
(4,888 Views)

so,how can i convert an array to variant type in VC++?and where can i get the variant functions information?

i mean how can i use variant type in VC++?create,convert,etc..

who can give me some samples code in VC++?

thanks

0 Kudos
Message 3 of 4
(4,888 Views)
You can refer to http://forums.ni.com/ni/board/message?board.id=231&message.id=3172&requireLogin=False
0 Kudos
Message 4 of 4
(4,873 Views)