随笔 - 455  文章 - 694  trackbacks - 0
<2007年11月>
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678


子曾经曰过:编程无他,唯手熟尔!
feedsky
抓虾
pageflakes
Rojo
狗狗
google reader
bloglines
my yahoo
newsgator
netvibes
鲜果


Locations of visitors to this page

常用链接

留言簿(50)

随笔分类(591)

随笔档案(455)

相册

BCB

Game Industry

OGRE

other

Programmers

Qt

special guys

  • bright tomorrow
  • A guy who has very close blood relationship with me!
  • 俺是山东人啊
  • One guy who often makes me cry in silent night.I love him so much, but I cannot see him any more, cause the God wanted him to be around.

WOW Stuff

搜索

  •  

积分与排名

  • 积分 - 202628
  • 排名 - 6

最新随笔

最新评论

阅读排行榜

评论排行榜

60天内阅读排行

看了几个小时的CUDA,大体了解了是干吗的,没啥成果,写下这个文章,以后继续研究
//==============
安装好CUDA SDK后,在这个目录下

C:\Program Files\NVIDIA Corporation\NVIDIA SDK 10\NVIDIA CUDA SDK\doc\syntax_highlighting\visual_studio_8

看里面的readme.txt就可以了。
下面是内容:

Want pretty syntax highlighting when editing your .cu files in Visual Studio?
Heres how:

---
Visual Studio .Net 2005 / Visual Studio 8:

1. If you don't have a usertype.dat file in your "Microsoft Visual Studio 8\Common7\IDE" folder, then copy the included usertype.dat file there.  If you do, append the contents of the included usertype.dat onto the end of the "Microsoft Visual Studio 8\Common7\IDE\usertype.dat"

2. Start Visual Studio 8.  Select the menu "Tools->Options...".  Open "Text Editor" in the tree view on the left, and click on "File Extension".  Type cu in the "Extension" box, and click "Add".  Click "OK" on the dialog box. 

3. Restart Visual Studio and your shaders should now have syntax highlighting.

posted on 2007-02-25 00:14 七星重剑 阅读(1435) 评论(4)  编辑 收藏 引用 所属分类: Game Graphics

FeedBack:
# re: 让vs2005支持NVDIA CUDA的cu文件语法高亮显示 2007-02-25 09:41 Jedimaster
末了看这readme.txt,只要把userdata.dat拷贝到IDE目录下,然后运行那个注册表文件就可以了  回复  更多评论
  
# re: 让vs2005支持NVDIA CUDA的cu文件语法高亮显示 2007-06-25 14:53 davv
不需要运行注册表文件,也没有什么注册表文件,只需要copy usertype.dat到指定目录,然后添加扩展名由vc++打开即可高亮显示  回复  更多评论
  
# re: 让vs2005支持NVDIA CUDA的cu文件语法高亮显示 2008-12-05 16:30 delacroix21cn
可以通过vs2005的Tools菜单中的Options来设置的。

方法是在打开的Options对话框中的Text Editor->File Extension中,将cu后缀设置为通过Microsoft Visual C++打开。  回复  更多评论
  
# re: 让vs2005支持NVDIA CUDA的cu文件语法高亮显示 2008-12-05 16:33 delacroix21cn
当然了,也要重启vs2005  回复  更多评论
  

标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]

相关链接:
网站导航: