LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Resources in a DLL created in VC++?

First I would like to thank ALS for his answer. I am able to run the function in a DLL Created using VC++. Thanks ALS.

I want to create a dialog in my VC++ DLL and I want this dialog to be shown when I am using this DLL in CVI. How do I go about it?
0 Kudos
Message 1 of 2
(2,588 Views)
Hello

You wont be able to load the dialog resource directly. If you're using something like MFC to create the dialog, CVI cannot call the methods of that dialog directly. You'll probably need to expose wrapper methods from the dll in order to call the dialog, since CVI cannot call C++ classes.

Make sure you specify extern "C" linkage when exporting the wrapper functions so the exported names are not mangled.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,588 Views)