This appendix describes how to integrate Pro*C/C++ into the Microsoft Visual Studio .NET 2002/2003 (or later) integrated development environment.
This appendix contains the following topics:
This section describes how to fully integrate Pro*C/C++ within Microsoft Visual Studio .NET projects.
All the precompiler errors and warnings are displayed in the output box where Microsoft Visual Studio .NET 2002/2003 displays compiler and linker messages. You do not have to precompile a file separately from the Microsoft Visual Studio .NET 2002/2003 build environment. More importantly, Microsoft Visual Studio .NET 2002/2003 maintains the dependencies between
.pc files. Microsoft Visual Studio .NET 2002/2003 maintains the dependency and precompile files, if needed.
All of the procedures in this section are performed within Microsoft Visual Studio .NET.
For Microsoft Visual Studio .NET to run Pro*C/C++, it must know the location of the Pro*C/C++ executable. If Microsoft Visual Studio .NET was installed before any Oracle release products were installed, then you must add the directory path.
To specify the location of the Pro*C/C++ executable:
The Options dialog appears.
\bindirectory. For example:
To specify the location of the Pro*C/C++ header files:
\precomp\publicdirectory. For example:
After you create a project, you need to add the
To add a
.pc file to a project:
.pc file, you need to add a reference to the
.c file that will result from precompiling.
To add a reference to a
.c file to a project:
.cfile in the File Name box.
.cfile has not been created yet, Microsoft Visual Studio .NET displays the following message: "The specified file does not exist. Do you want to add a reference to the project anyway?"
To add the Pro*C/C++ library to a project:
To specify Custom Build options:
.pcfile and select Settings. The Project Settings dialog appears with the Custom Build tab displayed.
If you are generating
.c files, then enter
If you are generating
.cpp files, then enter
$MSDEVDIR are macros for custom build commands in Microsoft Visual Studio .NET. When the project is built, Microsoft Visual Studio .NET checks the date of the output files to determine whether they need to be rebuilt for any new modifications made to the source code.
Microsoft Visual Studio .NET documentation
You can include Pro*C/C++ as a choice in the Tools menu of Microsoft Visual Studio .NET.
To add Pro*C/C++ to the Tools menu:
When you select Pro*C/C++ from the Tools menu, Microsoft Visual Studio .NET uses the
$(TargetName) argument to pass the name of the current development project to Pro*C/C++. Pro*C/C++ then opens a precompile project with the same name as the opened project, but with a
.pre extension in the project directory.
The Customize dialog should now look like the following graphic (although the Oracle home directory may be different on your computer).