10-05-2012 12:44 PM
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.
10-05-2012 02:19 PM
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.
10-08-2012 09:36 AM
I posted on your other post in the DIAdem forums.