You need to set "No Common Language Runtime support" for all .c files.
-----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Eddie Lascu Sent: Wednesday, July 23, 2008 14:25 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET] Mixing C code in a managed C++ project Hi, I have these files with C code that I need to use in my development. Since I am doing most of my work in C#, my idea was to create a class library in Managed C++ and use it in my C# application. So far so good. I have created a managed C++ class library project and added all the C files. When I compile the project, I am getting errors saying that the ".c" files cannot be compiled as C++. If I change the "/TP" (Compile as C++ code) compilation option to "/TC" (Compile as C code) I get a similar error for the ".cpp" files. Is there a way to mix these things together? TIA, Eddie =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com