Adding non-standard file name extensions to C++ project

G

Guest

I am trying to get filenames with a .cp exenstion to compile as C++ files in a VC++ .NET 2003 project. I have added the extension to the list in Tools > Options > Projects (& restarted) and when I get the properties of the .cp file in Solution Explorer it says that it will use "C/C++ Compiler Tool" as the tool.

However, when I open the file it is not syntax highlighted and when I compile the project I get the following erro
cl : Command line warning D4024 : unrecognized source file type 'stuff.cp', object file assume

Anyone know how to solve this one

Thanks a million!
 
G

Guest

Thanks! It works, now (I had only set it two other places and edited the registry :

Also thanks for the link, now I know where to find the real info...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top