473,698 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oracle Pro*C and VC++ 7.1 - source control and syntax color

Hi,

I'm developing code using Oracles embedded sql in .pc-files. These files are
pre-processed by the proc-tool, which generates a .cpp-file. Here are my
problems

- Syntax coloring - how can I make the visual studio editor to color the the
source file (the .pc file)? In Visual Studio 6 it was a right-click in the
editor window, choosing properties and selecting Oracle PL/SQL as language.

- Source control - Visual Studio always try to add the generated .cpp -
files to the Source control. Is there an easy way to exclude a particular
file from being added to source control?

Thanks in advance

Achim
Nov 17 '05 #1
2 2991
Hi Achim,

Thanks for posting in the community.
- Syntax coloring - how can I make the visual studio editor to color the thesource file (the .pc file)? In Visual Studio 6 it was a right-click in the
editor window, choosing properties and selecting Oracle PL/SQL as language.

Maybe the following steps can work:

1. Create the key .pc as shown here
HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\VisualS tudio\7.1\Langu ages\File
Extensions\.pc

2. Inside that key create a new string value called "unused" (no quotes)
and in the data portion enter "SQL" (no quotes)

3. For the default value of the .pc key, you can copy the GUID from the
default value in .sql key here
"HKEY_LOCAL_MAC HINE\SOFTWARE\M icrosoft\Visual Studio\7.1\Lang uages\File
Extensions\.sql "

4. Restart the machine, wish it work for you.
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 17 '05 #2
Hi Gary,

many thanks for your answer.

4. Restart the machine, wish it work for you.
Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support


It works :-) even without restarting the machine. Life is a little bit
easier ...

Thanks again

Achim
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3072
by: cschang | last post by:
My system is on a NT4 (w/SP6a) running IIS 4. I am developing a page that query one record from my Oracle DB 8.1.6 on a separate machine. I am using the MS ODBC for Oracle drive. In my ASP page I have (Connection object has been crreated.) then.. LnDetail = "{ call IPV$po.getPOLine(?,?, {resultset 1, "& _ " p_orderType, p_orderID, p_reqNum, p_nsn, "& _ " p_reqStatus, p_priceStatus, p_errFlag, p_errMsg})}"
2
7454
by: wallflowers | last post by:
Hi, I would like to know , how do I compile an oracle stored procedure or trigger from Visual C++ environment. I entered the sqlplus username/password@dbstring @filename command in the Custom Build step under Project Settings dialog box. Although I am able to submit the file to the server I am not able to get the errors. Since it just says that procedure was compiled with errors
5
2469
by: michael newport | last post by:
Oracle opens arms to Mozilla By Stephen Shankland and Alorie Gilbert, CNET News.com Oracle wants its applications to integrate better with Mozilla's open-source desktop software Oracle is working on a project to let Mozilla's open-source desktop software work better with Oracle's business applications, in the latest move by the database giant to promote open-source software.
133
9051
by: jonathan | last post by:
hey all, I realize that this question might pop up from time to time, but I haven't seen it a while and things might of changed, so - Right now (July 2004) how does mysql stand up in comparison to oracle? We are seriously considering migrating our multi-processor oracle system to mysql to save on licensing costs, and would need several features that mysql may or may not have:
13
3313
by: BigDaDDY | last post by:
Um yeah....In case you haven't figured it out, Microsoft sucks. I'm going to be kicked back in my chair eating popcorn and watching football 10 years from now, while all you clowns are scrambling to rewrite all your code because Microsoft upgraded all their crap and nothing you wrote 10 years earlier works. It doesn't take a rocket scientist to figure out that Microsoft is unreliable. Try opening an Excel 95 spreadsheet you wrote in...
9
17023
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to access any of the Oracle tables on another machine but now I am having problems. Unfortunately, I don't remember the correct syntax for the ODBC connect string and I am hoping that is my whole problem. I am trying to connect to an Oracle 9...
0
296
by: Joachim Krumnow | last post by:
Hi, I'm developing code using Oracles embedded sql in .pc-files. These files are pre-processed by the proc-tool, which generates a .cpp-file. Here are my problems - Syntax coloring - how can I make the visual studio editor to color the the source file (the .pc file)? In Visual Studio 6 it was a right-click in the editor window, choosing properties and selecting Oracle PL/SQL as language.
7
4361
by: D. Patrick | last post by:
I need to connect to an Oracle database. I've never done it before. I see that with framework 1.1 you had to download ODP.NET from Oracle's site in order for the framework classes to even work. I tried that quickly, but the file is 400 MB, and the the installation asks for all kinds of things in order to install. Now I'm very confused. a) Do you still need ODP.NET with framework 2.0? b) Do you need to download and install other...
2
14240
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze each of the listed features . Precompilers: Additional Array INSERT and SELECT Syntax Support by Pro*C/C++ and Pro*COBOL Precompilers: Dynamic SQL Statement Caching in Pro*C/C++ and Pro*COBOL Precompilers: Fix Execution Plan in Pro*C/C++ and Pro*COBOL Precompilers: Flexible B Area Length...
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9026
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.