Connecting Tech Pros Worldwide Forums | Help | Site Map

Visual Studio 9 intellisense and .pcp extension source files

myusernotyours's Avatar
Familiar Sight
 
Join Date: Nov 2007
Posts: 175
#1: Jun 24 '09
Hi everyone.

I have a problem that I can't resolve. I am working on a c++ project that uses an oracle database. I am using the oracle proc precompiler and my source files therefore have a .pcp extension. I can get syntax coloring by telling vc to do so for .pcp extension in the tools -> options dialog. I expect to get intellisense just by doing this, but it seems this is not possible.

if I convert the file ext to .cpp intellisense works but I have to turn it back to .pcp during builds.

Any help on how to resolve this is very welcome.

Regards.

JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Jun 24 '09

re: Visual Studio 9 intellisense and .pcp extension source files


Would this be an option?

Expand|Select|Wrap|Line Numbers
  1. /* your unprocessed pre-C file */
  2. #include <ContentOfYourOriginalFile.cpp>
  3.  
and your original file but with a .cpp extension can be another file in your project.

kind regards,

Jos
myusernotyours's Avatar
Familiar Sight
 
Join Date: Nov 2007
Posts: 175
#3: Jun 24 '09

re: Visual Studio 9 intellisense and .pcp extension source files


Ok Jos, thanks for that I will try it and see how it works out.

Regards,

Alex.
Reply