> I'm hoping to create a CIN with LV4.1 and MS
> VC++6, and have run into problems as I can't find
> the following files (I have no Cintools
> directory!):
>
Do you know whether you have the Base edition? CIN
tools are a part of the Full and Pro, but not base.
>
> I just have a standard install as I only use a
> serial port for data entry. I was hoping to use
> dll's written in Visual C++, but LabVIEW seems
> not to be able to handle multiple strings (or
> even a single string) as a return. This is
> basically so new products can be supported
> without distibuting a CD every time to every user.
>
Later versions of LabVIEW do support return values
as strings. The manual states for sure, but I believe
the pointer is assumed to be a constructed pointer
that doesn't
need to be freed. That is the problem
with returning strings in C code, is that there is
ambiguity as to whether free should be called on it.
For that reason, early versions of the DLL node just
didn't offer it. If this DLL is for LabVIEW or can
have entrypoints especially for LabVIEW, then you
can pass in a LV string -- a resizable handle -- which
you can resize and fill the data into. This is the
type of string that will ultimately flow down the wire
anyway, and it is more efficient to have the DLL use
it too.
Greg McKaskle