This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

uVision2: Configuring File Types

My apologies for recent random posts!

I'll just start the question again from scratch:

How can I configure uVision v2.07 to handle files other than *.c and *.h as 'C' source files?

I have used Project/File Extensions, Books and Environment to specify 'C' source files as: *.c;*.cpp;*.h;*.e

This gives the right set of files when I select 'C Source Files' in the 'Add Files' dialogue, and I can right-click a .cpp file in the Project window and get the 'C' options, and 'Translate' performs a 'C' compilation.
However, I do not get syntax highlighting on *.cpp or *.e, and 'Translate Current File' remains greyed out in both the Project menu and on the Toolbar

How can I get the whole of uVision2 to treat these files as 'C' Source?

Another case of a not-so-integrated development environment? :-(

0