LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

VC++ built MFC type DLL with LabWindows

I need to build a VC++ MFC application to be called from customer's LabWindows applicatiion. My program will be complete application which receives  several parameters from  the LabWindows application and then runs independently. It does not return any data or functions back to LabWindows. The first idea is to create C++ DLL to run with LabWindows, making appropriate code support in LabWindows application.
 My quiestion is if LabWindows works with with MFC type DLL created with VC++. DLL will use MFC classes internally but will not export any classes or functions to LabWindows.
Since I am new with LabWindows, maybe there is another easier way run external C++ program from LabWindows application passing only several simple parameters, such as numbers or strings.  
 
Thanks
 
0 Kudos
Message 1 of 4
(3,466 Views)
Hi Alex723,

As long as you set your code up correctly, as instructed in this helpful Knowledgebase below, by marking your functions with extern "C", this should work.

FAQ: Using Dynamic Link Libraries with LabWindows/CVI
http://zone.ni.com/devzone/cda/tut/p/id/3341#9

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 2 of 4
(3,436 Views)
Also check out this thread.  It discusses a few simple functions that can be used to launch an external executable.  This sounds like it would serve your purposes well.

Hope this helps.

Mert A.
National Instruments

Message Edited by Mert A. on 02-05-2007 06:25 PM

0 Kudos
Message 3 of 4
(3,433 Views)
Thanks for help. Of course, it would be much easier to launch my application as extenal executable. But I am not sure if it's possible  to pass my arguments to the executable written as C++ MFC application.     
0 Kudos
Message 4 of 4
(3,412 Views)