create dll from a c++ project

khatarat's Avatar, Join Date: Sep 2009
Newbie Member
this is a c++ project
http://www.memsense.com/images/downl...EKF-v4.0.1.zip
there is a class in \MEMSense\Kalman Filter\h\Kalman\MAG_ExtendedKalman.h
its used some libraries
how can i create a dll from that header file.
i want to use this in a c# project
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
You can't create a DLL from just a header file. A DLL contains compiled source code, but a header is just definitions and doesn't contain any source code.
Probably there's a related source file that contains the implementation of the definitions (maybe MAG_ExtendedKalman.c) and you can compile that into a DLL; you would need to check your C++ compiler documentation for how to do that, and your C# documentation for how to link a C++ DLL into a C# project.
khatarat's Avatar, Join Date: Sep 2009
Newbie Member
there is no way to use this file in c#?
h t t p : / / r a p i d s h a r e . c o m /files/279836334/Kalman_Filter.rar.html
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
What kind of file is it? (I don't download RAR's from RapidShare when I don't know exactly what they are)
khatarat's Avatar, Join Date: Sep 2009
Newbie Member
this is include some header file and some lib files
i want to use class declared in file mag_extendedkalman.h in c#