LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Export Target settings for DLL

Hello,
i want to build a dll where i included "nimaqmx.h". Target setting is "Export what: Symbols marked for export". In the source code i declared that the functions in nidaqmx.h should not be exported by:

#undef DllExport
#define DllExport
#include

But nevertheless all the functions are exported to the dll. In the meantime I solved this by setting the export setting to "include file symbols", but this isn't the intended behaviour, is it?
0 Kudos
Message 1 of 2
(3,100 Views)
Firstly, did you mean...

#undef DllExport
#include
#define DllExport

Another solution would be to have a seperate header file containing only the exported functions in your DLL. Then if you ever gave that DLL to someone, you'd have a handy header file with all the function declarations within it to make life easier for them.

Chris
0 Kudos
Message 2 of 2
(3,100 Views)