Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

problem in building exe file

i have created a workspace about simple dll in VC++. Now I want to build a exe file which is to input some data to dll and then using LabView call library function to read the data( the data is simple a integer). I dont know how to do it! because my workspace is dll. should i open a new workspace for building exe file and then include the header of dll (stdafx.h) in main.cpp and then build the exe file? thx for your help! i am new to VC++ and DLL stuff, thxx so much.
0 Kudos
Message 1 of 2
(2,693 Views)
DLL's can have export variables and export functions, variables require the "EXTERN" keyword. You can get your data into the dll via an export variable.

To access your export variable include your DLL header file in your EXE app, and add the DLL LIB lile to your EXE app project, make sure the DLL will be available to your EXE app.

A good way to test your DLL is to have a test EXE app project in the same workspace.
0 Kudos
Message 2 of 2
(2,693 Views)