LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cstring and DLL call.

I have a program in 6.1 that calls a DLL through the call library
function. One of the inputs to the DLL is a Cstr pointer type. The
function call works fine if the string input is wired to a string
control. If the input is wired to the output of 'format string' the
program dumps after the second call. Can anyone make sense of this?
0 Kudos
Message 1 of 2
(2,667 Views)
You should ckeck if you format string function give exact the same
string to your DLL as the string control. If the DLL use this parameter
also as output, you should remind, that you reserve with the input
string memory for the output string. Also check that you have no 00-byte
in your input string, because the 00-byte is the end-of-string mark in
c,

Cult of Nurse's schrieb:

> I have a program in 6.1 that calls a DLL through the call library
> function. One of the inputs to the DLL is a Cstr pointer type. The
> function call works fine if the string input is wired to a string
> control. If the input is wired to the output of 'format string' the
> program dumps after the second call. Can anyone make sense of this?
0 Kudos
Message 2 of 2
(2,667 Views)