From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-25-2007 02:38 PM - edited 07-25-2007 02:38 PM
P.S. Here is the VBA code I'm using:
Message Edited by Richard Ballantyne on 07-25-2007 02:39 PM
Message Edited by Richard Ballantyne on 07-25-2007 02:39 PM
07-25-2007 08:44 PM
07-26-2007 03:58 AM
07-26-2007 09:16 AM
Thank you for your responses. Even if I modify the VBA code so that it uses ByRef instead of ByVAL, Excel still crashes.
Now the declaration looks like this:
Private Declare Function binary_file_to_ascii Lib "C:\temp\binary_file_to_ascii\binary_to_ascii.dll" _
(ByVal binaryFile As String, ByRef nrows As Long, ByRef ncols As Long, ByVal column1 As Variant, _
ByVal column2 As Variant, ByVal column3 As Variant, _
ByVal column4 As Variant, ByVal column5 As Variant, _
ByVal column6 As Variant, ByVal column7 As Variant, _
ByVal column8 As Variant, ByVal column9 As Variant, _
ByVal column10 As Variant, ByVal column11 As Variant)
When a LV vi is compiled as a DLL, why does LV change the vi signed int32 output to a pointer to a long whenever the vi is compiled as a DLL? Shouldn't it just be a long and not a pointer to a long?
07-27-2007 02:09 AM