01-30-2006 02:31 PM - edited 01-30-2006 02:31 PM
Message Edited by nmxnmx on 01-30-2006 02:32 PM
Message Edited by nmxnmx on 01-30-2006 02:34 PM
01-30-2006 03:34 PM - edited 01-30-2006 03:34 PM
Message Edited by smercurio_fc on 01-30-2006 03:36 PM
01-30-2006 04:37 PM - edited 01-30-2006 04:37 PM
Message Edited by nmxnmx on 01-30-2006 04:38 PM
Message Edited by nmxnmx on 01-30-2006 04:40 PM
01-30-2006 05:21 PM
01-31-2006 05:48 AM
The problem is probably the return value of the function that is a string. In older LabVIEW versions (<6.0 you couldn't configure the CLN to do that.
@smercurio_fc wrote:
I didn't have a problem with that either. I also created this variant:
__declspec(dllexport) void fnReturnString3(char * data)
{
strcpy(data, "string_test");
}
In LabVIEW I created a buffer string to pass to the function call and got "string_test" back. Maybe there's a problem with the way the DLL is being built?
You should take a look in the LabVIEW install directory in the "examples\dll\data passing" directory. There you will find a Visual Studio project that's a DLL and a LabVIEW library with tons of examples of calling a DLL with various parameters.
01-31-2006 11:23 AM - edited 01-31-2006 11:23 AM
Message Edited by nmxnmx on 01-31-2006 11:29 AM
01-31-2006 12:41 PM
01-31-2006 01:35 PM
01-31-2006 03:13 PM
01-31-2006 05:35 PM