Hi,
I've managed to compile a DLL from Matlab code using MSVC 8.0. When trying to use the DLL functions in a Labwindows/CVI 8 project, I have to import several h-files as well, which causes trouble. wchar.h (include file from MSVC) is required, and this file in turn includes some other files (crtdefs.h, string.h) with some syntax CVI doesn't accept.
I've tried using the LCC compiler from Matlab, but this DLL generated linking errors in CVI, as described in other posts in this forum. I hope some of you know how to generate a DLL in Matlab and use it in CVI and can help me with this. I know it's possible to access Matlab using some ActiveX stuff, but with a Matlab DLL you only need a few runtime files, not the whole package (as far as I know).