create dll from a c++ project

Newbie Member
14Sep2009,00:26   #1
khatarat's Avatar
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
Mentor
14Sep2009,03:45   #2
xpi0t0s's Avatar
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.
Newbie Member
14Sep2009,13:38   #3
khatarat's Avatar
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
Mentor
14Sep2009,14:18   #4
xpi0t0s's Avatar
What kind of file is it? (I don't download RAR's from RapidShare when I don't know exactly what they are)
Newbie Member
14Sep2009,17:17   #5
khatarat's Avatar
this is include some header file and some lib files
i want to use class declared in file mag_extendedkalman.h in c#