04-28-2008 03:52 AM
05-19-2008 05:32 AM
Path is a LabVIEW datatype and only LabVIEW itself knows really how to deal with this. It is basically a LabVIEW handle with a private data structure. Private meaning LabVIEW does not really document its memory layout. You deal with Path variables in C code by calling into the LabVIEW manager functions as documented in the External Code Reference Manual.
@JensKutsche wrote:
LabView 8.5
VC++ 2008
Hi,
I am a Newbiee in Labview and I have a question to the variables in LabView-DLLs
I have created my own LabView-DLL (very easy, very nice) with a Path-variable as input.
I get the header file MyDll.h with the line
void __cdecl ReadSetupFile(Path *basePath, TD1 *outputCluster);
to Path I found the code in the from LabView creatred file extcode.h
#define LV_PRIVATE_POINTER_FWD(T) typedef struct T##_t *T /* for forward declarations */
@/** @struct Path
Opaque type used by the path manager. See pathmgr.cpp
declared here for use in constant table */
LV_PRIVATE_HANDLE(Path);
now I declared in m< main program
TD1 outputCluster;
Path basePath;
and run
ReadSetupFile(&basePath, &outputCluster);
outputCluster is a structure easy to read and to write but I have problems with the LavView variable "basePath"
The solution of Path is
typedef Path_t ** Path
All trials like
basePath = "C:\blabla";
*basePath = "C:\blabla";
**basePath = "C:\blabla";
basePath. ...
*basePath. ...
**basePath. ...
basePath-> ...
*basePath-> ...
**basePath-> ...
are not running.
How can I handle this?
Regards
Jens