LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C++ code and Labview

Hi...

How to use the existing code written in c++ with labview..?? I even tried to
use one of the dll written in C++....but would always say an illegal
operation...please close labview...how do i fix this??

http://phys.kemsu.ru/PhysDep/LabView/Topic/AN088.PDF
I did the way they explain to link dll in this note..

Thx for help

Abhimanyu
0 Kudos
Message 1 of 3
(3,297 Views)
Abhimanyu,

In the case of C++, the first operand in a call is always an implied
(unseen) pointer to "this". That would explain the operation exceptions.
If you want to use DLLs, they must be straight "C" type routines
without name mangling.

There is nothing wrong with the explanation shown on your link below
other than it refers to release 4. Your help files will be of more value
to you.


"Abhimanyu Rastogi" wrote in message
news:7Hp_6.4512$j6.698353@news...
> Hi...
>
> How to use the existing code written in c++ with labview..?? I even tried
to
> use one of the dll written in C++....but would always say an illegal
> operation...please close labview...how do i fix this??
>
> http://phys.kemsu.ru/PhysDep/LabView/Topic/AN088.P
DF
> I did the way they explain to link dll in this note..
>
> Thx for help
>
> Abhimanyu
>
>
>
0 Kudos
Message 2 of 3
(3,297 Views)
Also, if you're just getting started with the concept of integrating external C code into LabVIEW, you might want to digest the following resources:

(LabVIEW 6i Manual for external code an LV)
http://digital.ni.com/manuals.nsf/webAdvsearch/4F1447F7CD83D6D88625690D00637CED?OpenDocument

(LabVIEW/external code overview)
http://zone.ni.com/devzone/devzone.nsf/webcategories/2F4F574886553A62862567AC004F032D?opendocument&node=DZ52045_US

Regards,
John Lum
National Instruments
0 Kudos
Message 3 of 3
(3,297 Views)