Hello there,
If you are using the LabVIEW Real-time module, then the real-time portion of your code will run on a separate system running a Non-Windows Based Real-time Operating System. Obviously, the Visual C++ code cannot be run on that system.
What you can do, however, is create a LabVIEW VI that runs on a Windows host PC and interfaces with Visual C++. Then, this host VI can communicate parameters to the Real-time system. These can be the parameters that were generated by your Visual C++ code.
If you are not using the LabVIEW Real-time module, the problem becomes simpler. You will just need to build your Visual C++ code into a .dll that can then be called from LabVIEW. A tutorial to do so can be found
here. After that, you would use the "call library" function to make calls to the .dll. There is a great example that ships with LabVIEW 7.X called "call DLL.vi". This example is a comprehensive look at calling .dll files from LabVIEW, and it think that it will point you in the right direction.
I hope that this helps.
Regards,
P.J.
National Instruments