Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

interface with device driver (API or DLL files)

I want to make my C++ program interface with an instrument which has a device driver available at the OEM's website. It's a DLL file (not a .cpp file), but I don't know how to call DLL file from C++. I am using Measurement Studio for Visual C++ and Microsoft Visual C++ compiler. Do you have a C++ example code or tutorial about calling DLL (or API) from C++ ?
0 Kudos
Message 1 of 2
(3,111 Views)
Irene,

Measurement Studio is simply a plug-in for Visual Studio C++. Calling a DLL is general to C/C++. It usually amounts to #including the .h file that comes with the library, like this:

#include "MyDLL.h"

I found the following website through Google, which is pretty thorough on calling DLLs:

http://www.codeproject.com/dll/XDllPt1.asp

I hope that helps.

Matt P.
NI
0 Kudos
Message 2 of 2
(3,111 Views)