Hello all!
Searching this forum before I found a similar thread which unfortunately didn't solve my problem.
Goal: the function int dcp_check(char **info) is supposed to return a string when getting a null pointer. This works nice in C compiled code in Visual Studio. This is a Profinet DCP check for a PCAP installation. So everyone willing to try this and has any PCAP installed, should be able to run it with error code 0.
Problem: I have tried everything in LV and cannot figure it out. Either the DLL call crashes LV or the returned data isn't a string.
What did I try:
1. Defining it as U8 array, with and without array pointer setting. That makes it actually impossible to feed a null pointer, unless I feed 4 bytes of 0. But doesn't work.
2. Defining it as string, with C string pointer setting or handle, where any handle setting crashes LV. The C string pointer seems logical, but can only feed a string, empty or not.
Is there any chance to get this working?