01-03-2008 06:09 PM
typedef struct {The first method compiles and works no problems (DLLEXPORT is a macro for __declspec (dllexport)).
int32 length;
float data[1];
} t_LV_1DFlt, *p_LV_1DFlt, **h_LV_1DFlt;
DLLEXPORT int32 MyGetArraySize(h_LV_1dFlt hdl)
{
return (*hdl)->length;
}
/* when commented, file compiles */
DLLEXPORT int32 MyGetHndSize(h_LV_1DFlt hdl)
{
return DSGetHandleSize(hdl);
}
01-04-2008 10:36 AM
01-04-2008 02:43 PM - edited 01-04-2008 02:52 PM
The complication here is only that the import library should first detect if it runs inside the LabVIEW development environment LabVIEW.exe, for instance by doing a:
@DanBrowne wrote:
After a bit of research, I have found this forum thread which may be of some use to you:
http://forums.ni.com/ni/board/message?board.id=250&message.id=10936&page=1
Let me know if this helps,
Daniel