锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置:锐英源 / 英语翻译 / MicroStation二次开发及MDL语言开发培训相关:MDL在VC6环境开发配置翻译
源代码下载
服务方向
人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发
联系方式
固话:0371-63888850
手机:138-0381-0136
Q Q:396806883
微信:ryysoft

锐英源精品开源心得,转载请注明:“锐英源www.wisestudy.cn,孙老师作品,电话13803810136。”需要全文内容也请联系孙老师。

3.1准备:

VC6SP5以上版本,MSDN

3.2语法高亮:此步可不做

Step 1. MDL language syntax highlight-ing
MDL code is C code. We need Visual Studio to recognize file extensions of MDL related files as C-based files.MDL代码是C代码。需要让VS识别MDL相关文件的扩展名,通过扩展名把这些文件定性为C方面的文件。
These extensions include .mc; .fdf; .r; .mt;. The file extension information is stored in the registry key: See code below.这些扩展名有.mc;.fdf;.r;.mt。文件扩展名信息保存注册表里,具体键值请看下图:
具体键值
[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;mc;fdf;mt;r"

Run file VC_MDL_HIGHLIT.reg from download package for this article to update registry entries or extend registry manually by running regedit.exe. 本文附带的有VC_MDL_HIGHLIT.reg注册表更新文件,执行文件可达到高亮目的。也可手工使用regedit.exe来扩展注册表。因为涉及到VC6的安全性,这里建议手工执行。

修改注册表
Now run Visual Studio, open any .mc file via File/Open menu and see highlighting syntax of code. 现在运行VS,通过File/OPen菜单打开一个mc文件,看是否高亮了。
Go to Tools/Options... menu and select Format tab page. 通过Tools/Options菜单选择Format标签页
In the Category list select Source Windows; in the Font option list choose Courier New font with size 10pt. 在Category列表里选择Source Windows;在Font选项列表里选择Courier New字体,大小为10pt。
Select in Colors option list type of code text and use Foreground and Background items to set its corresponding colors as you wish. Check the? Keyword type to be colored.选定Colors选项列表里,确定Foreground 和 Background项使用的颜色。检查Keyword类型是被着色了。

3.3 MDL内置函数高亮

3.4 创建MDL工程

1、Select File/New to bring up the list shown in Figure 1 below.使用File/New菜单打开新工程列表,如下图:
MDL工程向导
图1 新建工程列表
2、Select Project tab page. From the available projects,choose Makefile. On the right side of the dialog, in the Location edit item, select the parent folder of you project选择Project标签,选择Makefile。选择工程目录。Makefile形式是最原始的工程形式,需要自己指定编译细节和过程。
3、 Type your project name into the Project name edit item. Visual Studio will make the folder according to the Project name (or will use the existing one if the folder with this name already exists). 输入工程名称。
4、 Toggle On option Create new workspace. Press OK。选中Create new workspace选项,点OK按钮。

Next wizard dialog asks for? Command? line for DEBUG configuration. Visual Studio has basically two configuration for running compilation process: Debug used for debug compilation, and Release, used for final release code.
You may use them for compilation, however I would recommend to use only one configuration and directly edit batch and make file for any necessary changes in build process. Delete any content there and type in? your project name plus .bat extension, for instance treexmpl.bat. This
will be a batch file for running MicroStation compilation. Then type into the Output your final application name, e.g. treexmpl.ma, and you may leave Rebuild All Switch as it is. Press Finish button.
Wizard creates workspace and project with three vir-tual folders: Source Files, Header Files and Resource Files. Now you may add source files to appropriate folders by clicking right mouse on item and selecting Add Files to Folder.
After adding all files you should be able to see Class View with all structures and functions used in your

友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内