IBM Support

How do I get Rhapsody to work with Microsoft Visual Studio .NET 2005?

Question & Answer


Question

How do I get Rhapsody to work with Microsoft Visual Studio .NET 2005?

Answer

You will need to make some modifications to get Rhapsody to work with Microsoft Visual Studio .NET 2005.

Although VS .NET 2005 is not a supported development environment, it is possible to get it up and running with Rational Rhapsody. Following are the steps to set this up:

  1. Create a new Vcvars32.bat file with the contents listed below (make sure your paths are correct).
  2. Copy this Vcvars32.bat file to the <Rhapsody_installation_folder>\Share\etc directory.

Now the OXF for C and C++ needs to be rebuilt:

  1. Open a DOS command line window
  2. Type cd <Rhapsody_installation_folder>\Share\LangC
  3. Type ..\etc\msmake.bat msbuild.mak (ignore the warning messages due to a modified compiler option (/GX to be replaced by /EHsc) and some "deprecated" system function declarations like sprintf)
  4. Type cd <Rhapsody_installation_folder>\Share\LangCpp
  5. Type ..\etc\msmake.bat msbuild.mak (again ignore the compiler warning messages...)
  6. This will now allow you to VS 2005 with Rhapsody, however you will get depreciation warnings when you compile. These can be eliminated by changing the CPP_CG :: Microsoft :: CompileSwitches property to:
    "/I . /I $OMDefaultSpecificationDirectory /I $(OMROOT)\\LangCpp /I $(OMROOT)\\LangCpp\\oxf /nologo /W3 /EHsc $OMCPPCompileCommandSet /D \"_AFXDLL\" /D \"WIN32\" /D \"_CONSOLE\" /D \"_MBCS\" /D \"_WINDOWS\" /D \"_CRT_SECURE_NO_DEPRECATE\" $(INST_FLAGS) $(INCLUDE_PATH) $(INST_INCLUDES) /c "
    End
    End

 

 

Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Contents of the Vcvars32.bat file:

+++++++++++++++++++++++++++++++

@SET VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8\Common7\IDE

@SET VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8

@SET FrameworkDir=c:\WINDOWS\Microsoft.NET\Framework

@SET FrameworkVersion=v2.0.50215

@SET FrameworkSDKDir=C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0

@rem Root of Visual Studio common files.

@if "%VSINSTALLDIR%"=="" goto Usage

@if "%VCINSTALLDIR%"=="" set VCINSTALLDIR=%VSINSTALLDIR%

@rem

@rem Root of Visual Studio ide installed files.

@rem

@set DevEnvDir=%VSINSTALLDIR%

@rem

@rem Root of Visual C++ installed files.

@rem

@set MSVCDir=%VCINSTALLDIR%\VC

@rem

@echo Setting environment for using Microsoft Visual Studio 2005 tools.

@echo (If you have another version of Visual Studio or Visual C++ installed and wish

@echo to use its tools from the command line, run vcvars32.bat for that version.)

@rem

@REM %VCINSTALLDIR%\Common7\Tools dir is added only for real setup.

@set PATH=%DevEnvDir%;%MSVCDir%\BIN;%VCINSTALLDIR%\Common7\Tools;%VCINSTALLDIR%\Common7\Tools\bin\prerelease;%VCINSTALLDIR%\Common7\Tools\bin;%FrameworkSDKDir%\bin;%FrameworkDir%\%FrameworkVersion%;%PATH%;

@set INCLUDE=%MSVCDir%\ATLMFC\INCLUDE;%MSVCDir%\INCLUDE;%MSVCDir%\PlatformSDK\include\gl;%MSVCDir%\PlatformSDK\include;%FrameworkSDKDir%\include;%INCLUDE%

@set LIB=%MSVCDir%\ATLMFC\LIB;%MSVCDir%\LIB;%MSVCDir%\PlatformSDK\lib;%MSVCDir%\PlatformSDK\lib;%FrameworkSDKDir%\lib;%LIB%

@goto end

:Usage

@echo. VSINSTALLDIR variable is not set.

@echo.

@echo SYNTAX: %0

@goto end

:end

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.0.1;7.5.1;7.5.1.1;7.5.2;7.5.2.1;7.5.3;7.5.3.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

10482

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21323751