|
如何让VC IDE识别自定义文件后缀名XML:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />Article last modified on 2002-5-28 ---------------------------------------------------------------- The information in this article applies to: - Microsoft Visual C++, 32-bit Editions, version 6.0, SP5 ---------------------------------------------------------------- Table of Contents CSdn.net/editor/Editor.htm#_Toc10344454">如何让VC IDE识别自定义文件后缀名... 1 Where?. 1 How To?. 1 有时候我们可能有这样的需求: 将自定义的文件后缀名作为VC IDE可识别的C/C++源文件,如,*.cc,*.ccc等等。Unix的C++文件的后缀不就是*.cc嘛。 我们首先将看看微软在哪里定义了这东西。其次,我们将说一下如何定义。 打开RegEdit,找到下列条目: HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Text Editor\Tabs/Language Settings\C/C++ 这里显示: 数据名称:FileExtensions 数据数值:cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2 VC++ IDE就是通过这个定义,来识别源文件后缀的。 |
把你的新后缀名加到这个注册表项中即可: cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2;*.ppt;*.PDF |
(To be Continued) Written by zhengyun@tomosoft.com
|