ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measure

cancel
Showing results for 
Search instead for 
Did you mean: 

GetFilePropertyNames with Visual Studio C#

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..

0 Kudos
Message 1 of 3
(6,098 Views)

Hello Kampfsau

 

have you seen this post DDC_Create​FileProper​ty etc: Problem with float properties

 

also i found this DDC_GetFilePropertyNames

best regards
Alexander
0 Kudos
Message 2 of 3
(6,071 Views)

I have seen it but it doesn't help me. Now I'm using measurement studio.. 😉

0 Kudos
Message 3 of 3
(6,039 Views)