Hi.
I am working with a dll-function generated from LV which needs an path type.
I would like to convert a std::string to LV-path and tried the following code.
std::string v_PathAsString_o = "C:\\_work\\PowerSupply.ini"; const char * v_path_pc = v_PathAsString_o.c_str(); const char ** v_path_ppc = &v_path_pc; Path * v_Path_po = NULL; char **filename = 0; MgErr v_status_o = FStringToPath((ConstLStrH)v_path_ppc, v_Path_po); // v_status_o will be set to 2 (mFullErr) // v_Path_po remains 0x00000000
After sucessful compile and run I got status from FStringToPath() back and was set to mFullErr.
I cannot imagine that my Windows 7 PC is having trouble with memory space.
What is the right way to get a LV path variable?