Sign in to follow this  
Luca D

Visual Studio and nVidia CG

Recommended Posts

Hi, I've already tried posting in the "for beginner" section without success. Anyway.. during the installation of the CG Toolkit, I was asked whether I wanted to integrate CG in the Visual Studio IDE. I answered yes but now I can't find any difference in Visual Studio; what should I find? In the installation folder there's "msdev_syntax_highlighting" which contains information to have syntax highlighting. It works, but what about locating errors? In the CG tutorial book it's written it's possible to find syntax errors at compile time. Is it true? Thanks

Share this post


Link to post
Share on other sites
Hello,
you wont find nothing in the IDE wizard if it's that what you are
looking for. To use Cg you need to add the include and lib paths,
the cg.lib and cggl.lib to your project. Then you can include the
neccesary files

#include "Cg\cg.h"
#include "Cg\cggl.h"

The syntax highlightinh works fine. Also in Visual Studio 2008.

best regards,
c-mos

Share this post


Link to post
Share on other sites
Hello,
look here: http://http.developer.nvidia.com/CgTutorial/cg_tutorial_chapter02.html
scrolling down you will find an image with the VS IDE, whose note is:
"Figure 2-3 Locating Error Lines in an Integrated Development Environment".
I'm referring to that.
Thanks!
EDIT: I've just seen a thing in VS.. try to add a .cg file for example into the source folder of a c++ project. This will cause the opening of a dialog box which says: "A custom build rule to build files with extension ".cg" could not be found. Would you like to create a new rule.. etc..".
Maybe this has something to do with the error locating function mentioned in that picture.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this