DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DDC_CreateFileProperty etc: Problem with float properties

Hello,

I cannot get DDC_CreateFilePropertyV to work correctly with float type attributes. The property values passed into this function do not show up in the resulting TDM file, instead a value of -INF is written. For all other data types (double, int, string, etc.), DDC_CreateFilePropertyV works fine.

Same for the variants for creating channel group and channel attributes as well as their counterparts for modifying existing attributes, DDC_Set...PropertyV.

Interestingly,  DDC_Create...Property and DDC_Set...Property yield the expected results for all data types (see attached code fragment of test program and the TDM file, nilibddc.dll version used was 9.1,  test program built with MS Visual C++ 2010).

 

 

Any ideas as to the reasons (compiler settings or similar?) of this behaviour?

 

 

Download All
0 Kudos
Message 1 of 3
(3,546 Views)

Hi emeff,

 

unfortunately you are using an undocumented function of the header file. This function does not work under all circumstances in the way you are using it which leads to the problems you are observing.

Please use DDC_CreateFileProperty (without a V at the end) instead.

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

Thanks. Perhaps it would be useful to point this out in the header file. Not everyone (me included) cross-checks it with the doucumentation before using the functions, especially when their names are (apparently) self-explanatory.

0 Kudos
Message 3 of 3
(3,489 Views)