LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing dll in visual c++ and importing it to labview

I am writing a Dll using microsoft visual c++. Under the source file i wish to include this header file(#include "extcode.h")sothat i can use the labview library function in c++.However when i try to duild the dll,it will produce a linker problem which say that unable to find this file or no such file exist.

Another point that i am not clear of is,under microsoft visual c++,can i either choose to add this file by listing it in mysource code(#include extcode.h) or can i just simply add by clicking on the project tab->add file ->indicate the file name?

when writing a dll, i can either choose to write in "C" or winapi.Which of these method will provide a better soln.

in lbview when we declar
ed the type of data say integer, i understand that there is only short integer(16bits) and a long integer(32bits) and achar (8bit integer). However in a c program there is short int,int and a long int so how i am able to declare an int as regard to labview?
0 Kudos
Message 1 of 2
(2,843 Views)
Derek,

Use the following link :

http://zone.ni.com/devzone/devzone.nsf/webcategories/E2A99E7E10D5725D862567AC004F0A53?opendocument

I think you will find all you need there. The first link off this page will also give you a table of how labview ints convert to other development enviroment types. There are also links for creating a DLL in C++ and using it in labview like you are trying to do.

Jared
Message 2 of 2
(2,843 Views)