Jedhi Posted January 8, 2004 Posted January 8, 2004 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 ? Quote
AndreRyan Posted January 9, 2004 Posted January 9, 2004 Headers are C++ files, C# does not, and will not, support header files. You'll need to write a C# class that does the same thing or add the C++ code as a Managed DLL Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.