06-30-2010 07:37 AM
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?
07-02-2010 08:48 AM
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.
07-02-2010 09:21 AM
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.