SoftEng 版 (精华区)
发信人: Sun (大灯泡), 信区: SoftEng
标 题: rose与vc5.0协同设计(五)
发信站: 紫 丁 香 (Wed Apr 5 16:42:10 2000), 转信
发信人: longlife (牛牛), 信区: SoftEng
标 题: rose与vc5.0协同设计(五)
发信站: BBS 水木清华站 (Fri Nov 6 12:48:01 1998)
Recompiling the project in Visual C++
Go back to Visual C++.
Go to the files tab in the Workspace pane, right click on Source files
| Add Files to Folder. Choose to add testclass.cpp to the source files.
click to enlarge
Right click on Header Files | Add files to Folder. Choose to add
testclass.h to the Header files.
Make sure the testMe function returns a valid BOOL, hence include
return true; in the function body in the testclass.cpp file.
Recompile the project with the Menu command Build|Rebuild All.
A new .exe should be built, including the class you created in Rose.
click to enlarge
Adding Classes in DevStudio
Use the menu commands Insert | New Class... to create a new generic
class called TestFromVC.
Add a new method, with the Wizard bar's Add Member function command.
click to enlarge
Name the new method "anotherFunction" with return type void.
Do a Rebuild by using the menu Build|Rebuild All command, there should
be no errors.
Open up the Rose Analyzer with the same project file we used before.
Use the Files... button to bring up the file selection dialog. Add the
new .cpp and .h files to the project.
Exit the files dialog and Shift click to select the new files you just
added in the files window.
Change the type of the new files to type 2 by using the menu selection
Action|Set Type|Type 2. You only need to set the .h files to be type 2.
All .cpp files are always type 1 files
click to enlarge
With the files still selected, choose the Actions|Code Cycle option to
prepare the new files for code cycling. Answer OK to the overwrite
query.
Shift click to select ALL of the source files in the project.
--
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 159.226.23.7]
--
太阳就是个大灯泡。(自创)
先天下之光而光,后天下之脱而脱。(摘抄)
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: 202.118.239.237]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:7.585毫秒