Setting up the C++ Analyzer for MSVC++ 6.0

本文介绍了 Rational Rose RealTime 中的 C++ Analyzer 工具,该工具作为附加组件帮助进行 C++ 类的逆向工程,并导入到 Rose RealTime 模型中。文中详细解释了如何设置和使用 MSVC++ 的基础项目文件,包括必要的路径映射定义。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Resolving the problem

The Rose C++ Analyzer is a Rational Rose tool that has been included as an Add-In with Rose RealTime to help facilitate reverse engineering of C++ classes, which can then be imported into a Rose RealTime model.

The C++ Analyzer has the capability of using a "base" project. A base project is typically created with the files needed for compilation but not needed for the design model. Usually, but not always, they will be the standard library files supplied by the compiler vendor such as: stdio.h, stddef.h, and so on.

After downloading the .zip file, unzip this file to the %ROSERT_HOME% directory, by default that would be "C:\Program Files\Rational\Rose RealTime". Within this directory the unzipping will create two directories: Analyzer and Analyzer\projects.

Within the projects directory will be all the files needed to reverse engineer projects from MSVC++.

  • msvc60.pjt - The main MSVC++ project, most likely the only one you need
  • atl60.pjt - The MSVC++ project based on ATL, used in conjunction with msvc60.pjt
  • mfc60.pjt - The MSVC++ project based on MFC, used in conjunction with msvc60.pjt and atl60.pjt
When you load msvc60.pjt into the Rose C++ Analyzer, you may be asked to re/map some pathmap symbols. For more information, please see the online help in the Rose C++ Analyzer Add-In:
Help > Search for Help on... > virtual path symbol

Additional information on virtual path maps can be found in the Rose RealTime online help:
Guide to Team Development > Storage of Model Data > Virtual Path Maps > Defining Virtual Path Maps


For each of the "base" projects different pathmaps are required to be defined.

For msvc60.pjt:

$ROSERTHOME - specifies the root directory of the Rose RealTime installation
$MSVC60 - directory containing Microsoft Visual C++ include files
$DESIGN - directory in which model files containing reverse-engineered designs are placed

For atl60.pjt:

$ATL60 - directory containing the ATL 6.0 include files

For mfc60.pjt:

$MFC60 - directory containing the MFC 6.0 include files


Having these projects loaded as a base project will help in reverse engineering your MSVC++ code.

Note: The base projects do not need to be error free. Ideally the actual user project should be error free.

Related information

Japanese technote
Base projects to be used with the C++ Analyzer
Rational Rose RealTime support on the web

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值