06-18-2009 06:07 AM
hi,
i have written a dll that is supposed to handle all the datat aquisition for my gui app.
now when i start the app without any hint of measStud in the dll, everything runs fine. only if i add the line
CNiDAQmxTask* m_task = new CNiDAQmxTask();
in the dll, my app will not even start. the vs2008 debugger shows no error messange at all. dependency walker shows me two missing dlls when profiling: mxsout_logger.dll and mxsout_profiler.dll. these are national instruments dlls.
what is the problem here?!?
how can i use a measurement studio dll in a non-mfc app?
thanx!!
06-19-2009 04:25 AM
Hi,
if you anyway want to work without MFC, why don´t you use the DAQmx C API?
You can find the examples somewhere like
C:\Dokumente und Einstellungen\All Users\Dokumente\National Instruments\NI-DAQ\Examples\DAQmx ANSI C
regards
Marco Brauner NIG
05-11-2010 10:18 AM - edited 05-11-2010 10:19 AM
Hi,
I have exactly the same problem. I try to use C and C++ libraries but it doesn't work.
My programming code is a DLL project using MFC in a shared DLL in Visual Studio 2005.
I'm using it like this:
Cpp:
CNiDAQmxTask* myTask = new CNiDAQmxTask();
C:
DAQmxErrChk (DAQmxCreateTask("",&task));
But both pauses the program with no event. (No error or breakpoint or anything) The program is not stopped, it's just paused...
Regards,
Nicolas