LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DIAdem Connectivity Library And VB.Net

I'm tring to to use the DDC_Create function from the TDM C dll the problem is that I keep getting a -6202 Error (Invalid Argument) 

 

<DllImport("nilibddc.dll", CallingConvention:=CallingConvention.StdCall, CharSet:=CharSet.Ansi)> _
  Public Function DDC_CreateFile(ByVal FilePath As String, ByVal FileType As String, _
                                   ByVal FileName As String, ByVal Desc As String, _
                                   ByVal Title As String, ByVal Author As String, _
                                  ByRef File As IntPtr) As Integer

 

I have looked everywhere for help and tried every combination of possible solutions that I could think of without luck.  I know that this should work is it is the way that others on this forum are doing it with success, I'm definitly getting frustrated.

0 Kudos
Message 1 of 3
(3,153 Views)

I forgot to mention that this is how the code is called

 

Dim FilePtr As IntPtr

DDC_CreateFile("C:\Temp", "DDC_FILE_TYPE_TDMS", "Test.tdms", "None", _
                               "test", "Author", FilePtr)

 

to me thats looks good which is why I am thinking that the error message must some how be misleading me.

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

I posted on your other post in the DIAdem forums.

Jacob R. | Applications Engineer | National Instruments

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