Question & Answer
Question
How can you generate Interop.rhapsody.dll when calling IBM Rational Rhapsody COM API?
Cause
Rhapsody Repository API consists of a set of COM interface that supports dual interfaces (COM and automation) which allow access from Visual Basic and any language implemented with COM bindings.
Like all COM-based APIs, user application developed by VB or other language need to refer to corresponding Interop assembly library to understand Rhapsody MetaData.
Answer
You can generate Interop.rhapsody.dll by adding the Rhapsody type library file (rhapsody.tlb) to your VB application as per steps explained Microsoft Article How to: Add References to Type Libraries.
Once rhapsody.tlb becomes available, Visual Studio would automatically generate MetaData assembly file (Interop.rhapsody.dll).
- Install the COM DLL or EXE file on your computer, unless a Windows Setup.exe file performs the installation for you.
- From the Project menu, select References
- Select the COM tab
- Select the type library from the Available References list, or browse for the rhapsody.tlb file
Note: File rhapsody.tlb is bundled with the product and can be found under the Rhapsody installation root directory
- Click OK
- Right-click the newly added reference, and then click Properties
- In the Properties window, make sure that the Embed Interop Types property is set to True. This causes Visual Studio to embed type information for COM types in your executable, eliminating the need to deploy primary interop assemblies with your application.
Note: Beyond the info mentioned above, there are other options available to you for generating an Interop assembly containing type MetaData. Refer to Microsoft Article Importing a Type Library as an Assembly for details.
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21639424