Skip to main content


developerWorks  >  Rational  >

Visual Basic and Visual C++ Templates in IBM Rational Rose

developerWorks

Maartje Tel (dwinfo@us.ibm.com), Consultant, Independent Consultant

17 Apr 2004

Get the download

In this white paper, VB and VC++ templates in IBM® Rational® Rose are examined, along with code constructs containing common class members and their derived behavior which can be captured and easily applied to any class.

This paper was originally published in April, 2001.

There are many occasions in the software development process when you want to reuse and share code fragments throughout a project or across projects. For example, you have a coding standard where all new classes should contain a base set of operations and attributes. Or, you may have a common set of initialization or debug code that you want to apply to all classes, or you want to reuse an error handling strategy that requires preoperations and postoperations in every method. For this purpose you can use a code template for VB and VC++ classes in IBM Rational Rose® to capture code constructs containing common class members and their derived behavior, and easily apply it to any class in your model. This process will save you precious time, you will avoid the error-prone copy/paste/rename process, and by using class templates you will get predefined code functions that will bring your project/solution closer to an executing architecture. In this article we will examine the basics behind VB and VC++ templates in Rose and show you how you can use the template feature in Rose2000e or Rose2001 by demonstrating step-by-step how we create and test our own VB MTS class template.



Download

DescriptionNameSizeDownload method
VB and VC++ templates1619_0612.pdf132 KBHTTP
Information about download methodsGet Adobe® Reader®



Back to top



Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community