04-06-2016 02:46 PM
Hi, It is possible to use a queue to exchange messages between a .dll and LabVIEW? Yes. Check image.
It is posilbe that the data contained in a cluster and are variant? You can convert a data to variant in .dll and convert a variant data to data labview?
And I tried to implement a function with the following code, but I err when I run LabVIEW.
#pragma pack (push,1)
typedef struct
{
LStrHandle newStringHandle;
LvVariant* Data;
} MessageCluster;
#pragma pack(pop)
...
MessageCluster Message;
...
PostLVUserEvent(*rwer, (void*)&Message);
Thank you very much.
Solved! Go to Solution.
04-06-2016 05:49 PM
No, the variant C API is not documented and therefore there is no way to create, query, modify or otherwise use them from C code, if you are not an NI developer. Use the documented datatypes instead.