05-13-2011 06:14 AM
Hello,
I'm try to read TDM files with VS C# while using nilibddc.dll. Some functions are working but for example the GetFilePropertyNames doesn't work. I declare the function like this:
[DllImport(@"C:\TDMLIB\nilibddc.dll", EntryPoint = "DDC_GetFilePropertyNames", CharSet = CharSet.Ansi)]
private static extern int DDC_GetFilePropertyNames(IntPtr file, ref IntPtr[] propertyNames, uint numberOfProperties);
but I get a FatalExecutionEngineError while calling it like this:
IntPtr[] propertyNames = new IntPtr[numberOfPorperties];
error = DDC_GetFilePropertyNames(this.cFile[0], ref propertyNames, numberOfPorperties); //I get numberOfProperties while using DDC_GetNumFileProperties
I hope you can help me..
05-20-2011 04:50 AM - edited 05-20-2011 04:53 AM
Hello Kampfsau
have you seen this post DDC_CreateFileProperty etc: Problem with float properties
also i found this DDC_GetFilePropertyNames
06-14-2011 01:03 AM
I have seen it but it doesn't help me. Now I'm using measurement studio.. 😉