Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

.dnet libraries

Hi,
 
We want to write a motion control aplication using the VS Express C++ with a .dnet framework 2.0. We would like to use the existing C examples provided as guideline to build out application. Currently I have the following problems:
1.  The NIMCexample.c file does not compile in debug mode. We have a buffer overun as well. I suspect this due tot he fact that the C code wants to use malloc to manage memory and C++ is using another memory manager.
 
Can any body suggest what we can do to overcome this problem?
 
I also heard that using c# is probably a better alternative to C++ when working with c code.
 
Thanx in advance.
 
Regards
Thivash
0 Kudos
Message 1 of 2
(2,832 Views)
Hello Thivash,
 
Thank you for contacting National Instruments.  In order to use the NI-Motion dlls in .NET languages, you must create a wrapper around them.  Here is a knowledgbase that describes how to do this:
 
 
Another option is to try and run the Visual C++ 6.0 examples in an unmanaged code environment in Visual C++ .NET.
 
Regards,
 
Mike T
National Instruments
0 Kudos
Message 2 of 2
(2,817 Views)