headerfile included to C# project

Jedhi

Well-known member
Joined
Oct 2, 2003
Messages
127
I am coiding C#, but need to include a header file. This header file is used for C++ as well. So I thought by putting a namespace to the header file it could be used both for C# and for C++.

I have added the header file to my project in C# and being setting the "using "headerfile".

But still when I compile it says it can not find the namespace of the headerfile.

Can I do what I describe above and what am I doing wrong ?
 
Headers are C++ files, C# does not, and will not, support header files. Youll need to write a C# class that does the same thing or add the C++ code as a Managed DLL
 


Write your reply...
Back
Top