📄 build_c++_client.cmd
字号:
@REM Copyright (c) 2000 BEA Systems, Inc. All Rights Reserved.
@REM You must set your environment by running the setExamplesEnv shell script
@REM prior to executing this script.
@REM Build the C++ Client:
@Note: %WL_HOME% variable gets set when you run the setExamplesEnv script.
@REM Set VISIBROKER_HOME variable as the installation directory of your VisiBroker for Java 4.0
@REM Edit VISIBROKER_HOME depending upon your VisiBroker for C++ installation
set VISIBROKER_HOME=c:\Inprise\vbroker
@REM Set MSVC_HOME variable as the installation directory of your Microsoft Visiual C++
@REM Edit MSVC_HOME depending upon your Microsoft Visiual C++ installation
set MSVC_HOME=c:\Progra~1\Micros~1\Vc98
@REM Set the PATH to build the C++ client
set PATH=%PATH%;%WL_HOME%\lib;%VISIBROKER_HOME%\bin;%VISIBROKER_HOME%\lib;%MSVC_HOME%\bin
@REM Compile the HelloWorld.idl file located in the samples\examples\rmi_iiop\hello\idlSources\examples\rmi_iiop\hello
@REM directory with the VisiBroker idl2cpp utility
idl2cpp -I%WL_HOME%\lib -IidlSources -src_suffix cpp idlSources\examples\rmi_iiop\hello\HelloWorld.idl
@REM Compile the Remote.idl file located in the samples\examples\rmi_iiop\hello\idlSources\java\rmi
@REM directory with the VisiBroker idl2cpp utility
idl2cpp -I%WL_HOME%\lib -IidlSources -src_suffix cpp idlSources\java\rmi\Remote.idl
@REM Change directory to cpp
cd cpp
@REM Create directory java and java\rmi under cpp directory
mkdir java java\rmi
cd ..
@REM Move all the Remote cpp and hh file to cpp\java\rmi directory
copy Rem*.* cpp\java\rmi
@REM Copy all the HelloWorld cpp file to cpp directory
copy HelloWorld_* cpp
cd cpp
@REM Compile the HelloClient.cpp and HelloWorld_c.cpp file and create the
@REM executable HelloClient.exe file
CL -DWIN32 /GX /MD -I%VISIBROKER_HOME%\include -I%MSVC_HOME%\include /Z7 -DVISIBROKER HelloClient.cpp HelloWorld_c.cpp /link /libpath:%VISIBROKER_HOME%\lib /out:HelloClient.exe
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -