LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Calling functions that are in a class based DLL (MFC extention DLL)"

"Calling functions that are in a class based DLL (MFC extention DLL)"

"Calling functions that are in a class based DLL (MFC extention DLL)

I have a DLL written in VC++ using MFC exteintion DLL.


The functions are used to extract information from a hardware card.


eg.:


class AFX_EXT_CLASS WSDevice : public cAsyncSocket


This is a class in a DLL. There are a number of functions in this DLL that we need to call from Labview 5.0


How do we call these functions?


Normally (in VC++ /C++) we ceate a instance of this class like WSDeviceObj and use the function call :


WSDeviceObj.fucntion name


Kindly Help.


Satish Narayana"
0 Kudos
Message 1 of 3
(3,063 Views)
I don't think LV call library function can be used directly. One way you can do is using CIN node. Then the question will be: how to call a C++ class DLL using C? This question can be answered in newsgroups comp.lang.c or comp.lang.cpp.

Joe
0 Kudos
Message 2 of 3
(3,063 Views)
You can create a wrapper dll from which you can call your dlls functions.

Guidelines on how to create a dll that can communicate with LabVIEW are provided in the document "Using External Code in LabVIEW", which should be included with LabVIEW. You can download the document also from www.ni.com at:

http://digital.ni.com/manuals.nsf/web_productcurrent/4F1447F7CD83D6D88625690D00637CED?OpenDocument

Regards;
Vargas
www.vartortech.com
0 Kudos
Message 3 of 3
(3,063 Views)