diff options
Diffstat (limited to 'cpp/demo/Ice')
66 files changed, 2024 insertions, 478 deletions
diff --git a/cpp/demo/Ice/MFC/client/Ice.MFC.client.dsp b/cpp/demo/Ice/MFC/client/Ice.MFC.client.dsp index ba0a0012ca8..ec43c944968 100644 --- a/cpp/demo/Ice/MFC/client/Ice.MFC.client.dsp +++ b/cpp/demo/Ice/MFC/client/Ice.MFC.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.MFC.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.MFC.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
-CFG=Ice.MFC.client - Win32 Debug
+CFG=Ice.MFC.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.MFC.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.MFC.client.mak" CFG="Ice.MFC.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.MFC.client.mak" CFG="Ice.MFC.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.MFC.client - Win32 Release" (based on "Win32 (x86) Application")
-!MESSAGE "Ice.MFC.client - Win32 Debug" (based on "Win32 (x86) Application")
+!MESSAGE "Ice.MFC.client.exe - Win32 Release" (based on "Win32 (x86) Application")
+!MESSAGE "Ice.MFC.client.exe - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
@@ -29,7 +29,7 @@ CPP=cl.exe MTL=midl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.MFC.client - Win32 Release"
+!IF "$(CFG)" == "Ice.MFC.client.exe - Win32 Release"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 0
@@ -53,10 +53,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib /nologo /subsystem:windows /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib /nologo /subsystem:windows /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug
-!ELSEIF "$(CFG)" == "Ice.MFC.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.MFC.client.exe - Win32 Debug"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 1
@@ -87,8 +87,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.MFC.client - Win32 Release"
-# Name "Ice.MFC.client - Win32 Debug"
+# Name "Ice.MFC.client.exe - Win32 Release"
+# Name "Ice.MFC.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -145,7 +145,7 @@ SOURCE=.\StdAfx.h SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.MFC.client - Win32 Release"
+!IF "$(CFG)" == "Ice.MFC.client.exe - Win32 Release"
USERDEP__HELLO="..\..\..\..\bin\slice2cpp.exe" "..\..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -161,7 +161,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.MFC.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.MFC.client.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\..\bin\slice2cpp.exe" "..\..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/MFC/server/Ice.MFC.server.dsp b/cpp/demo/Ice/MFC/server/Ice.MFC.server.dsp index 1fe53ce7c26..420a8bd6254 100644 --- a/cpp/demo/Ice/MFC/server/Ice.MFC.server.dsp +++ b/cpp/demo/Ice/MFC/server/Ice.MFC.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.MFC.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.MFC.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
-CFG=Ice.MFC.server - Win32 Debug
+CFG=Ice.MFC.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.MFC.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.MFC.server.mak" CFG="Ice.MFC.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.MFC.server.mak" CFG="Ice.MFC.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.MFC.server - Win32 Release" (based on "Win32 (x86) Application")
-!MESSAGE "Ice.MFC.server - Win32 Debug" (based on "Win32 (x86) Application")
+!MESSAGE "Ice.MFC.server.exe - Win32 Release" (based on "Win32 (x86) Application")
+!MESSAGE "Ice.MFC.server.exe - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
@@ -29,7 +29,7 @@ CPP=cl.exe MTL=midl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.MFC.server - Win32 Release"
+!IF "$(CFG)" == "Ice.MFC.server.exe - Win32 Release"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 0
@@ -53,10 +53,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386
-# ADD LINK32 ice.lib iceutil.lib /nologo /subsystem:windows /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../../lib" /FIXED:no
+# ADD LINK32 ice.lib iceutil.lib /nologo /subsystem:windows /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug
-!ELSEIF "$(CFG)" == "Ice.MFC.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.MFC.server.exe - Win32 Debug"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 1
@@ -87,8 +87,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.MFC.server - Win32 Release"
-# Name "Ice.MFC.server - Win32 Debug"
+# Name "Ice.MFC.server.exe - Win32 Release"
+# Name "Ice.MFC.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -161,7 +161,7 @@ SOURCE=.\StdAfx.h SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.MFC.server - Win32 Release"
+!IF "$(CFG)" == "Ice.MFC.server.exe - Win32 Release"
USERDEP__HELLO="..\..\..\..\bin\slice2cpp.exe" "..\..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -177,7 +177,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.MFC.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.MFC.server.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\..\bin\slice2cpp.exe" "..\..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/Makefile.mak b/cpp/demo/Ice/Makefile.mak index d563f36a154..1ee00a3c859 100644 --- a/cpp/demo/Ice/Makefile.mak +++ b/cpp/demo/Ice/Makefile.mak @@ -26,7 +26,7 @@ SUBDIRS = minimal \ multicast \
nrvo
-!if "$(CPP_COMPILER)" != "BCC2007" && "$(CPP_COMPILER)" != "VC80_EXPRESS" && "$(CPP_COMPILER)" != "VC90_EXPRESS"
+!if "$(BCPLUSPLUS)" != "yes" && "$(CPP_COMPILER)" != "VC80_EXPRESS" && "$(CPP_COMPILER)" != "VC90_EXPRESS"
SUBDIRS = $(SUBDIRS) MFC
!endif
diff --git a/cpp/demo/Ice/README b/cpp/demo/Ice/README index daf714a5d26..0b9aee63862 100644 --- a/cpp/demo/Ice/README +++ b/cpp/demo/Ice/README @@ -56,6 +56,11 @@ Demos in this directory: A demo to illustrate how nested callbacks work, and how the size of the thread pool affects the maximum nesting depth. +-nrvo + + A demo that shows how Ice takes advantage of NRVO (Named Return + Value Optimization) which is included in modern C++ compilers. + - session This demo shows how to use sessions to clean up client-specific diff --git a/cpp/demo/Ice/async/Ice.async.client.dsp b/cpp/demo/Ice/async/Ice.async.client.dsp index eb6779daa16..782f22a235f 100644 --- a/cpp/demo/Ice/async/Ice.async.client.dsp +++ b/cpp/demo/Ice/async/Ice.async.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.async.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.async.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.async.client - Win32 Debug
+CFG=Ice.async.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.async.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.async.client.mak" CFG="Ice.async.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.async.client.mak" CFG="Ice.async.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.async.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.async.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.async.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.async.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.async.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.async.client - Win32 Release"
+!IF "$(CFG)" == "Ice.async.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.async.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.async.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.async.client - Win32 Release"
-# Name "Ice.async.client - Win32 Debug"
+# Name "Ice.async.client.exe - Win32 Release"
+# Name "Ice.async.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Hello.h SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.async.client - Win32 Release"
+!IF "$(CFG)" == "Ice.async.client.exe - Win32 Release"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -129,7 +129,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.async.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.async.client.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/async/Ice.async.server.dsp b/cpp/demo/Ice/async/Ice.async.server.dsp index 6e3d71ed956..bf9284c7871 100644 --- a/cpp/demo/Ice/async/Ice.async.server.dsp +++ b/cpp/demo/Ice/async/Ice.async.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.async.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.async.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.async.server - Win32 Debug
+CFG=Ice.async.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.async.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.async.server.mak" CFG="Ice.async.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.async.server.mak" CFG="Ice.async.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.async.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.async.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.async.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.async.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.async.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.async.server - Win32 Release"
+!IF "$(CFG)" == "Ice.async.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.async.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.async.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.async.server - Win32 Release"
-# Name "Ice.async.server - Win32 Debug"
+# Name "Ice.async.server.exe - Win32 Release"
+# Name "Ice.async.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -129,7 +129,7 @@ SOURCE=.\WorkQueue.h SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.async.server - Win32 Release"
+!IF "$(CFG)" == "Ice.async.server.exe - Win32 Release"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -145,7 +145,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.async.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.async.server.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/bidir/Ice.bidir.client.dsp b/cpp/demo/Ice/bidir/Ice.bidir.client.dsp index d5d0fcf9b25..21a51b2ea2c 100644 --- a/cpp/demo/Ice/bidir/Ice.bidir.client.dsp +++ b/cpp/demo/Ice/bidir/Ice.bidir.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.bidir.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.bidir.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.bidir.client - Win32 Debug
+CFG=Ice.bidir.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.bidir.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.bidir.client.mak" CFG="Ice.bidir.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.bidir.client.mak" CFG="Ice.bidir.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.bidir.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.bidir.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.bidir.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.bidir.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.bidir.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.bidir.client - Win32 Release"
+!IF "$(CFG)" == "Ice.bidir.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug
-!ELSEIF "$(CFG)" == "Ice.bidir.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.bidir.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.bidir.client - Win32 Release"
-# Name "Ice.bidir.client - Win32 Debug"
+# Name "Ice.bidir.client.exe - Win32 Release"
+# Name "Ice.bidir.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Callback.h SOURCE=.\Callback.ice
-!IF "$(CFG)" == "Ice.bidir.client - Win32 Release"
+!IF "$(CFG)" == "Ice.bidir.client.exe - Win32 Release"
USERDEP__CALLB="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -131,7 +131,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.bidir.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.bidir.client.exe - Win32 Debug"
USERDEP__CALLB="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/bidir/Ice.bidir.server.dsp b/cpp/demo/Ice/bidir/Ice.bidir.server.dsp index fbdc456711f..4feaa92c357 100644 --- a/cpp/demo/Ice/bidir/Ice.bidir.server.dsp +++ b/cpp/demo/Ice/bidir/Ice.bidir.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.bidir.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.bidir.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.bidir.server - Win32 Debug
+CFG=Ice.bidir.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.bidir.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.bidir.server.mak" CFG="Ice.bidir.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.bidir.server.mak" CFG="Ice.bidir.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.bidir.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.bidir.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.bidir.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.bidir.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.bidir.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.bidir.server - Win32 Release"
+!IF "$(CFG)" == "Ice.bidir.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug
-!ELSEIF "$(CFG)" == "Ice.bidir.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.bidir.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.bidir.server - Win32 Release"
-# Name "Ice.bidir.server - Win32 Debug"
+# Name "Ice.bidir.server.exe - Win32 Release"
+# Name "Ice.bidir.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\CallbackI.h SOURCE=.\Callback.ice
-!IF "$(CFG)" == "Ice.bidir.server - Win32 Release"
+!IF "$(CFG)" == "Ice.bidir.server.exe - Win32 Release"
USERDEP__CALLB="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -139,7 +139,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.bidir.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.bidir.server.exe - Win32 Debug"
USERDEP__CALLB="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/callback/CallbackSenderI.cpp b/cpp/demo/Ice/callback/CallbackSenderI.cpp index bf8286c8318..4ba68f7071e 100644 --- a/cpp/demo/Ice/callback/CallbackSenderI.cpp +++ b/cpp/demo/Ice/callback/CallbackSenderI.cpp @@ -20,7 +20,7 @@ CallbackSenderI::initiateCallback(const CallbackReceiverPrx& proxy, const Curren cout << "initiating callback" << endl; try { - proxy->callback(current.ctx); + proxy->callback(); } catch(const Exception& ex) { diff --git a/cpp/demo/Ice/callback/Ice.callback.client.dsp b/cpp/demo/Ice/callback/Ice.callback.client.dsp index 5faa1c6378d..5d099c4a05e 100644 --- a/cpp/demo/Ice/callback/Ice.callback.client.dsp +++ b/cpp/demo/Ice/callback/Ice.callback.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.callback.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.callback.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.callback.client - Win32 Debug
+CFG=Ice.callback.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.callback.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.callback.client.mak" CFG="Ice.callback.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.callback.client.mak" CFG="Ice.callback.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.callback.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.callback.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.callback.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.callback.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.callback.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.callback.client - Win32 Release"
+!IF "$(CFG)" == "Ice.callback.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug
-!ELSEIF "$(CFG)" == "Ice.callback.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.callback.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.callback.client - Win32 Release"
-# Name "Ice.callback.client - Win32 Debug"
+# Name "Ice.callback.client.exe - Win32 Release"
+# Name "Ice.callback.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Callback.h SOURCE=.\Callback.ice
-!IF "$(CFG)" == "Ice.callback.client - Win32 Release"
+!IF "$(CFG)" == "Ice.callback.client.exe - Win32 Release"
USERDEP__CALLB="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -129,7 +129,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.callback.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.callback.client.exe - Win32 Debug"
USERDEP__CALLB="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/callback/Ice.callback.server.dsp b/cpp/demo/Ice/callback/Ice.callback.server.dsp index 97201a40f0f..f0616290280 100644 --- a/cpp/demo/Ice/callback/Ice.callback.server.dsp +++ b/cpp/demo/Ice/callback/Ice.callback.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.callback.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.callback.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.callback.server - Win32 Debug
+CFG=Ice.callback.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.callback.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.callback.server.mak" CFG="Ice.callback.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.callback.server.mak" CFG="Ice.callback.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.callback.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.callback.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.callback.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.callback.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.callback.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.callback.server - Win32 Release"
+!IF "$(CFG)" == "Ice.callback.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug
-!ELSEIF "$(CFG)" == "Ice.callback.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.callback.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.callback.server - Win32 Release"
-# Name "Ice.callback.server - Win32 Debug"
+# Name "Ice.callback.server.exe - Win32 Release"
+# Name "Ice.callback.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\CallbackSenderI.h SOURCE=.\Callback.ice
-!IF "$(CFG)" == "Ice.callback.server - Win32 Release"
+!IF "$(CFG)" == "Ice.callback.server.exe - Win32 Release"
USERDEP__CALLB="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.callback.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.callback.server.exe - Win32 Debug"
USERDEP__CALLB="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/converter/Ice.converter.client.dsp b/cpp/demo/Ice/converter/Ice.converter.client.dsp index 30c4324cb7d..6d31dec93bd 100644 --- a/cpp/demo/Ice/converter/Ice.converter.client.dsp +++ b/cpp/demo/Ice/converter/Ice.converter.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.converter.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.converter.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.converter.client - Win32 Debug
+CFG=Ice.converter.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.converter.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.converter.client.mak" CFG="Ice.converter.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.converter.client.mak" CFG="Ice.converter.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.converter.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.converter.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.converter.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.converter.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.converter.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.converter.client - Win32 Release"
+!IF "$(CFG)" == "Ice.converter.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.converter.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.converter.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.converter.client - Win32 Release"
-# Name "Ice.converter.client - Win32 Debug"
+# Name "Ice.converter.client.exe - Win32 Release"
+# Name "Ice.converter.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\StringConverterI.h SOURCE=.\Greet.ice
-!IF "$(CFG)" == "Ice.converter.client - Win32 Release"
+!IF "$(CFG)" == "Ice.converter.client.exe - Win32 Release"
USERDEP__ECHO_="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.converter.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.converter.client.exe - Win32 Debug"
USERDEP__ECHO_="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/converter/Ice.converter.server.dsp b/cpp/demo/Ice/converter/Ice.converter.server.dsp index 84c5374245e..50964bb3a8f 100644 --- a/cpp/demo/Ice/converter/Ice.converter.server.dsp +++ b/cpp/demo/Ice/converter/Ice.converter.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.converter.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.converter.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.converter.server - Win32 Debug
+CFG=Ice.converter.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.converter.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.converter.server.mak" CFG="Ice.converter.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.converter.server.mak" CFG="Ice.converter.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.converter.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.converter.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.converter.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.converter.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.converter.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.converter.server - Win32 Release"
+!IF "$(CFG)" == "Ice.converter.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.converter.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.converter.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.converter.server - Win32 Release"
-# Name "Ice.converter.server - Win32 Debug"
+# Name "Ice.converter.server.exe - Win32 Release"
+# Name "Ice.converter.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\GreetI.h SOURCE=.\Greet.ice
-!IF "$(CFG)" == "Ice.converter.server - Win32 Release"
+!IF "$(CFG)" == "Ice.converter.server.exe - Win32 Release"
USERDEP__ECHO_="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.converter.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.converter.server.exe - Win32 Debug"
USERDEP__ECHO_="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/hello/Ice.hello.client.dsp b/cpp/demo/Ice/hello/Ice.hello.client.dsp index 075aae77020..8de7af3a000 100644 --- a/cpp/demo/Ice/hello/Ice.hello.client.dsp +++ b/cpp/demo/Ice/hello/Ice.hello.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.hello.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.hello.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.hello.client - Win32 Debug
+CFG=Ice.hello.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.hello.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.hello.client.mak" CFG="Ice.hello.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.hello.client.mak" CFG="Ice.hello.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.hello.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.hello.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.hello.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.hello.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.hello.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.hello.client - Win32 Release"
+!IF "$(CFG)" == "Ice.hello.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.hello.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.hello.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.hello.client - Win32 Release"
-# Name "Ice.hello.client - Win32 Debug"
+# Name "Ice.hello.client.exe - Win32 Release"
+# Name "Ice.hello.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Hello.h SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.hello.client - Win32 Release"
+!IF "$(CFG)" == "Ice.hello.client.exe - Win32 Release"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -129,7 +129,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.hello.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.hello.client.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/hello/Ice.hello.server.dsp b/cpp/demo/Ice/hello/Ice.hello.server.dsp index f33f02b1fa1..1b0444db90c 100644 --- a/cpp/demo/Ice/hello/Ice.hello.server.dsp +++ b/cpp/demo/Ice/hello/Ice.hello.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.hello.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.hello.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.hello.server - Win32 Debug
+CFG=Ice.hello.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.hello.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.hello.server.mak" CFG="Ice.hello.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.hello.server.mak" CFG="Ice.hello.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.hello.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.hello.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.hello.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.hello.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.hello.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.hello.server - Win32 Release"
+!IF "$(CFG)" == "Ice.hello.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.hello.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.hello.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.hello.server - Win32 Release"
-# Name "Ice.hello.server - Win32 Debug"
+# Name "Ice.hello.server.exe - Win32 Release"
+# Name "Ice.hello.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\HelloI.h SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.hello.server - Win32 Release"
+!IF "$(CFG)" == "Ice.hello.server.exe - Win32 Release"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.hello.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.hello.server.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/invoke/Ice.invoke.client.dsp b/cpp/demo/Ice/invoke/Ice.invoke.client.dsp index 6be078be291..b22f7dac198 100644 --- a/cpp/demo/Ice/invoke/Ice.invoke.client.dsp +++ b/cpp/demo/Ice/invoke/Ice.invoke.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.invoke.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.invoke.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.invoke.client - Win32 Debug
+CFG=Ice.invoke.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.invoke.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.invoke.client.mak" CFG="Ice.invoke.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.invoke.client.mak" CFG="Ice.invoke.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.invoke.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.invoke.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.invoke.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.invoke.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.invoke.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.invoke.client - Win32 Release"
+!IF "$(CFG)" == "Ice.invoke.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.invoke.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.invoke.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.invoke.client - Win32 Release"
-# Name "Ice.invoke.client - Win32 Debug"
+# Name "Ice.invoke.client.exe - Win32 Release"
+# Name "Ice.invoke.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Printer.h SOURCE=.\Printer.ice
-!IF "$(CFG)" == "Ice.invoke.client - Win32 Release"
+!IF "$(CFG)" == "Ice.invoke.client.exe - Win32 Release"
USERDEP__PRINT="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -129,7 +129,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.invoke.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.invoke.client.exe - Win32 Debug"
USERDEP__PRINT="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/invoke/Ice.invoke.server.dsp b/cpp/demo/Ice/invoke/Ice.invoke.server.dsp index d0bb6ed85a9..81ad62da1cb 100644 --- a/cpp/demo/Ice/invoke/Ice.invoke.server.dsp +++ b/cpp/demo/Ice/invoke/Ice.invoke.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.invoke.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.invoke.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.invoke.server - Win32 Debug
+CFG=Ice.invoke.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.invoke.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.invoke.server.mak" CFG="Ice.invoke.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.invoke.server.mak" CFG="Ice.invoke.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.invoke.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.invoke.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.invoke.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.invoke.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.invoke.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.invoke.server - Win32 Release"
+!IF "$(CFG)" == "Ice.invoke.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.invoke.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.invoke.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.invoke.server - Win32 Release"
-# Name "Ice.invoke.server - Win32 Debug"
+# Name "Ice.invoke.server.exe - Win32 Release"
+# Name "Ice.invoke.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\PrinterI.h SOURCE=.\Printer.ice
-!IF "$(CFG)" == "Ice.invoke.server - Win32 Release"
+!IF "$(CFG)" == "Ice.invoke.server.exe - Win32 Release"
USERDEP__PRINT="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.invoke.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.invoke.server.exe - Win32 Debug"
USERDEP__PRINT="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/latency/Ice.latency.client.dsp b/cpp/demo/Ice/latency/Ice.latency.client.dsp index 42da5f39464..70d560eea09 100644 --- a/cpp/demo/Ice/latency/Ice.latency.client.dsp +++ b/cpp/demo/Ice/latency/Ice.latency.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.latency.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.latency.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.latency.client - Win32 Debug
+CFG=Ice.latency.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.latency.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.latency.client.mak" CFG="Ice.latency.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.latency.client.mak" CFG="Ice.latency.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.latency.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.latency.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.latency.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.latency.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.latency.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.latency.client - Win32 Release"
+!IF "$(CFG)" == "Ice.latency.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.latency.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.latency.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.latency.client - Win32 Release"
-# Name "Ice.latency.client - Win32 Debug"
+# Name "Ice.latency.client.exe - Win32 Release"
+# Name "Ice.latency.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Latency.h SOURCE=.\Latency.ice
-!IF "$(CFG)" == "Ice.latency.client - Win32 Release"
+!IF "$(CFG)" == "Ice.latency.client.exe - Win32 Release"
USERDEP__LATEN="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -129,7 +129,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.latency.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.latency.client.exe - Win32 Debug"
USERDEP__LATEN="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/latency/Ice.latency.server.dsp b/cpp/demo/Ice/latency/Ice.latency.server.dsp index 2852d07e2b2..02c9ff0e28e 100644 --- a/cpp/demo/Ice/latency/Ice.latency.server.dsp +++ b/cpp/demo/Ice/latency/Ice.latency.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.latency.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.latency.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.latency.server - Win32 Debug
+CFG=Ice.latency.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.latency.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.latency.server.mak" CFG="Ice.latency.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.latency.server.mak" CFG="Ice.latency.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.latency.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.latency.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.latency.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.latency.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.latency.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.latency.server - Win32 Release"
+!IF "$(CFG)" == "Ice.latency.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.latency.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.latency.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.latency.server - Win32 Release"
-# Name "Ice.latency.server - Win32 Debug"
+# Name "Ice.latency.server.exe - Win32 Release"
+# Name "Ice.latency.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Latency.h SOURCE=.\Latency.ice
-!IF "$(CFG)" == "Ice.latency.server - Win32 Release"
+!IF "$(CFG)" == "Ice.latency.server.exe - Win32 Release"
USERDEP__LATEN="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -129,7 +129,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.latency.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.latency.server.exe - Win32 Debug"
USERDEP__LATEN="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/minimal/Ice.minimal.client.dsp b/cpp/demo/Ice/minimal/Ice.minimal.client.dsp index eec5eab6946..7f9a2fbc1d0 100644 --- a/cpp/demo/Ice/minimal/Ice.minimal.client.dsp +++ b/cpp/demo/Ice/minimal/Ice.minimal.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.minimal.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.minimal.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.minimal.client - Win32 Debug
+CFG=Ice.minimal.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.minimal.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.minimal.client.mak" CFG="Ice.minimal.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.minimal.client.mak" CFG="Ice.minimal.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.minimal.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.minimal.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.minimal.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.minimal.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.minimal.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.minimal.client - Win32 Release"
+!IF "$(CFG)" == "Ice.minimal.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.minimal.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.minimal.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.minimal.client - Win32 Release"
-# Name "Ice.minimal.client - Win32 Debug"
+# Name "Ice.minimal.client.exe - Win32 Release"
+# Name "Ice.minimal.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Hello.h SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.minimal.client - Win32 Release"
+!IF "$(CFG)" == "Ice.minimal.client.exe - Win32 Release"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -129,7 +129,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.minimal.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.minimal.client.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/minimal/Ice.minimal.server.dsp b/cpp/demo/Ice/minimal/Ice.minimal.server.dsp index a8c8c722b99..390bddbeb2e 100644 --- a/cpp/demo/Ice/minimal/Ice.minimal.server.dsp +++ b/cpp/demo/Ice/minimal/Ice.minimal.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.minimal.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.minimal.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.minimal.server - Win32 Debug
+CFG=Ice.minimal.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.minimal.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.minimal.server.mak" CFG="Ice.minimal.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.minimal.server.mak" CFG="Ice.minimal.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.minimal.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.minimal.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.minimal.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.minimal.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.minimal.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.minimal.server - Win32 Release"
+!IF "$(CFG)" == "Ice.minimal.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.minimal.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.minimal.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.minimal.server - Win32 Release"
-# Name "Ice.minimal.server - Win32 Debug"
+# Name "Ice.minimal.server.exe - Win32 Release"
+# Name "Ice.minimal.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\HelloI.h SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.minimal.server - Win32 Release"
+!IF "$(CFG)" == "Ice.minimal.server.exe - Win32 Release"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.minimal.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.minimal.server.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/multicast/Ice.multicast.client.dsp b/cpp/demo/Ice/multicast/Ice.multicast.client.dsp index 019ab569952..5ea89309119 100644 --- a/cpp/demo/Ice/multicast/Ice.multicast.client.dsp +++ b/cpp/demo/Ice/multicast/Ice.multicast.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.multicast.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.multicast.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.multicast.client - Win32 Debug
+CFG=Ice.multicast.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.multicast.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.multicast.client.mak" CFG="Ice.multicast.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.multicast.client.mak" CFG="Ice.multicast.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.multicast.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.multicast.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.multicast.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.multicast.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.multicast.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.multicast.client - Win32 Release"
+!IF "$(CFG)" == "Ice.multicast.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.multicast.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.multicast.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.multicast.client - Win32 Release"
-# Name "Ice.multicast.client - Win32 Debug"
+# Name "Ice.multicast.client.exe - Win32 Release"
+# Name "Ice.multicast.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\Hello.h SOURCE=.\Discovery.ice
-!IF "$(CFG)" == "Ice.multicast.client - Win32 Release"
+!IF "$(CFG)" == "Ice.multicast.client.exe - Win32 Release"
# Begin Custom Build
InputPath=.\Discovery.ice
@@ -136,7 +136,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.multicast.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.multicast.client.exe - Win32 Debug"
# Begin Custom Build
InputPath=.\Discovery.ice
@@ -158,7 +158,7 @@ BuildCmds= \ SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.multicast.client - Win32 Release"
+!IF "$(CFG)" == "Ice.multicast.client.exe - Win32 Release"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -174,7 +174,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.multicast.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.multicast.client.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/multicast/Ice.multicast.server.dsp b/cpp/demo/Ice/multicast/Ice.multicast.server.dsp index 5cf143a76fb..b6b47842e94 100644 --- a/cpp/demo/Ice/multicast/Ice.multicast.server.dsp +++ b/cpp/demo/Ice/multicast/Ice.multicast.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.multicast.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.multicast.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.multicast.server - Win32 Debug
+CFG=Ice.multicast.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.multicast.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.multicast.server.mak" CFG="Ice.multicast.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.multicast.server.mak" CFG="Ice.multicast.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.multicast.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.multicast.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.multicast.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.multicast.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.multicast.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.multicast.server - Win32 Release"
+!IF "$(CFG)" == "Ice.multicast.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.multicast.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.multicast.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.multicast.server - Win32 Release"
-# Name "Ice.multicast.server - Win32 Debug"
+# Name "Ice.multicast.server.exe - Win32 Release"
+# Name "Ice.multicast.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\Hello.h SOURCE=.\Discovery.ice
-!IF "$(CFG)" == "Ice.multicast.server - Win32 Release"
+!IF "$(CFG)" == "Ice.multicast.server.exe - Win32 Release"
# Begin Custom Build
InputPath=.\Discovery.ice
@@ -136,7 +136,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.multicast.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.multicast.server.exe - Win32 Debug"
# Begin Custom Build
InputPath=.\Discovery.ice
@@ -158,7 +158,7 @@ BuildCmds= \ SOURCE=.\Hello.ice
-!IF "$(CFG)" == "Ice.multicast.server - Win32 Release"
+!IF "$(CFG)" == "Ice.multicast.server.exe - Win32 Release"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -174,7 +174,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.multicast.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.multicast.server.exe - Win32 Debug"
USERDEP__HELLO="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/nested/Ice.nested.client.dsp b/cpp/demo/Ice/nested/Ice.nested.client.dsp index 9bba3e9fd6d..1cf88e4cef0 100644 --- a/cpp/demo/Ice/nested/Ice.nested.client.dsp +++ b/cpp/demo/Ice/nested/Ice.nested.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.nested.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.nested.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.nested.client - Win32 Debug
+CFG=Ice.nested.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.nested.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.nested.client.mak" CFG="Ice.nested.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.nested.client.mak" CFG="Ice.nested.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.nested.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.nested.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.nested.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.nested.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.nested.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.nested.client - Win32 Release"
+!IF "$(CFG)" == "Ice.nested.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.nested.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.nested.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.nested.client - Win32 Release"
-# Name "Ice.nested.client - Win32 Debug"
+# Name "Ice.nested.client.exe - Win32 Release"
+# Name "Ice.nested.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\NestedI.h SOURCE=.\Nested.ice
-!IF "$(CFG)" == "Ice.nested.client - Win32 Release"
+!IF "$(CFG)" == "Ice.nested.client.exe - Win32 Release"
USERDEP__NESTE="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.nested.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.nested.client.exe - Win32 Debug"
USERDEP__NESTE="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/nested/Ice.nested.server.dsp b/cpp/demo/Ice/nested/Ice.nested.server.dsp index 3c9a7a5ca3c..b78d7dcc4c9 100644 --- a/cpp/demo/Ice/nested/Ice.nested.server.dsp +++ b/cpp/demo/Ice/nested/Ice.nested.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.nested.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.nested.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.nested.server - Win32 Debug
+CFG=Ice.nested.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.nested.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.nested.server.mak" CFG="Ice.nested.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.nested.server.mak" CFG="Ice.nested.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.nested.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.nested.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.nested.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.nested.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.nested.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.nested.server - Win32 Release"
+!IF "$(CFG)" == "Ice.nested.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.nested.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.nested.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.nested.server - Win32 Release"
-# Name "Ice.nested.server - Win32 Debug"
+# Name "Ice.nested.server.exe - Win32 Release"
+# Name "Ice.nested.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\NestedI.h SOURCE=.\Nested.ice
-!IF "$(CFG)" == "Ice.nested.server - Win32 Release"
+!IF "$(CFG)" == "Ice.nested.server.exe - Win32 Release"
USERDEP__NESTE="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.nested.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.nested.server.exe - Win32 Debug"
USERDEP__NESTE="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/nested/NestedI.cpp b/cpp/demo/Ice/nested/NestedI.cpp index fb79d2995fd..33fba93ae44 100644 --- a/cpp/demo/Ice/nested/NestedI.cpp +++ b/cpp/demo/Ice/nested/NestedI.cpp @@ -25,6 +25,6 @@ NestedI::nestedCall(Int level, const NestedPrx& proxy, const Ice::Current& curre cout << level << endl; if(--level > 0) { - proxy->nestedCall(level, _self, current.ctx); + proxy->nestedCall(level, _self); } } diff --git a/cpp/demo/Ice/nrvo/.depend b/cpp/demo/Ice/nrvo/.depend index 7bda9bb610a..9e5bee5a07c 100644 --- a/cpp/demo/Ice/nrvo/.depend +++ b/cpp/demo/Ice/nrvo/.depend @@ -1,4 +1,5 @@ Nrvo$(OBJEXT): Nrvo.cpp ./Nrvo.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/Ice/LoggerF.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h ./MyStringSeq.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/ObjectFactory.h $(includedir)/IceUtil/Iterator.h $(includedir)/IceUtil/ScopedArray.h +MyStringSeq$(OBJEXT): MyStringSeq.cpp ./MyStringSeq.h $(includedir)/IceUtil/Config.h Client$(OBJEXT): Client.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTableInit.h $(includedir)/Ice/FactoryTable.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h ./Nrvo.h ./MyStringSeq.h NrvoI$(OBJEXT): NrvoI.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTableInit.h $(includedir)/Ice/FactoryTable.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h ./NrvoI.h ./Nrvo.h ./MyStringSeq.h Server$(OBJEXT): Server.cpp $(includedir)/Ice/Ice.h $(includedir)/Ice/Initialize.h $(includedir)/Ice/CommunicatorF.h $(includedir)/Ice/LocalObjectF.h $(includedir)/IceUtil/Shared.h $(includedir)/IceUtil/Config.h $(includedir)/Ice/Handle.h $(includedir)/IceUtil/Handle.h $(includedir)/IceUtil/Exception.h $(includedir)/Ice/Config.h $(includedir)/Ice/ProxyHandle.h $(includedir)/Ice/ProxyF.h $(includedir)/Ice/ObjectF.h $(includedir)/Ice/GCCountMap.h $(includedir)/Ice/GCShared.h $(includedir)/Ice/Exception.h $(includedir)/Ice/LocalObject.h $(includedir)/Ice/UndefSysMacros.h $(includedir)/Ice/PropertiesF.h $(includedir)/Ice/Proxy.h $(includedir)/IceUtil/Mutex.h $(includedir)/IceUtil/Lock.h $(includedir)/IceUtil/ThreadException.h $(includedir)/IceUtil/Time.h $(includedir)/Ice/ProxyFactoryF.h $(includedir)/Ice/ConnectionIF.h $(includedir)/Ice/RequestHandlerF.h $(includedir)/Ice/EndpointIF.h $(includedir)/Ice/Endpoint.h $(includedir)/Ice/ObjectAdapterF.h $(includedir)/Ice/ReferenceF.h $(includedir)/Ice/OutgoingAsyncF.h $(includedir)/Ice/Current.h $(includedir)/Ice/ConnectionF.h $(includedir)/Ice/Identity.h $(includedir)/Ice/StreamF.h $(includedir)/Ice/Object.h $(includedir)/Ice/IncomingAsyncF.h $(includedir)/Ice/InstanceF.h $(includedir)/Ice/LoggerF.h $(includedir)/Ice/StatsF.h $(includedir)/Ice/StringConverter.h $(includedir)/Ice/Plugin.h $(includedir)/IceUtil/Unicode.h $(includedir)/Ice/BuiltinSequences.h $(includedir)/Ice/LocalException.h $(includedir)/Ice/Properties.h $(includedir)/Ice/Outgoing.h $(includedir)/IceUtil/Monitor.h $(includedir)/IceUtil/Cond.h $(includedir)/Ice/BasicStream.h $(includedir)/Ice/ObjectFactoryF.h $(includedir)/Ice/Buffer.h $(includedir)/Ice/Protocol.h $(includedir)/Ice/OutgoingAsync.h $(includedir)/IceUtil/Timer.h $(includedir)/IceUtil/Thread.h $(includedir)/Ice/Incoming.h $(includedir)/Ice/ServantLocatorF.h $(includedir)/Ice/ServantManagerF.h $(includedir)/Ice/Direct.h $(includedir)/Ice/Logger.h $(includedir)/Ice/LoggerUtil.h $(includedir)/Ice/Stats.h $(includedir)/Ice/Communicator.h $(includedir)/Ice/RouterF.h $(includedir)/Ice/LocatorF.h $(includedir)/Ice/PluginF.h $(includedir)/Ice/ImplicitContextF.h $(includedir)/Ice/ObjectFactory.h $(includedir)/Ice/ObjectAdapter.h $(includedir)/Ice/FacetMap.h $(includedir)/Ice/ServantLocator.h $(includedir)/Ice/IncomingAsync.h $(includedir)/Ice/Process.h $(includedir)/Ice/Application.h $(includedir)/Ice/Connection.h $(includedir)/Ice/Functional.h $(includedir)/IceUtil/Functional.h $(includedir)/Ice/Stream.h $(includedir)/Ice/ImplicitContext.h $(includedir)/Ice/Locator.h $(includedir)/Ice/UserExceptionFactory.h $(includedir)/Ice/FactoryTableInit.h $(includedir)/Ice/FactoryTable.h $(includedir)/IceUtil/StaticMutex.h $(includedir)/Ice/UserExceptionFactoryF.h $(includedir)/Ice/ProcessF.h $(includedir)/Ice/Router.h $(includedir)/Ice/DispatchInterceptor.h $(includedir)/Ice/IconvStringConverter.h ./NrvoI.h ./Nrvo.h ./MyStringSeq.h diff --git a/cpp/demo/Ice/nrvo/Client.cpp b/cpp/demo/Ice/nrvo/Client.cpp index 449fa6fc468..2ff70a697a3 100644 --- a/cpp/demo/Ice/nrvo/Client.cpp +++ b/cpp/demo/Ice/nrvo/Client.cpp @@ -34,7 +34,12 @@ main(int argc, char* argv[]) return app.main(argc, argv, "config.client"); } -NrvoClient::NrvoClient() +NrvoClient::NrvoClient() : + // + // Since this is an interactive demo we don't want any signal + // handling. + // + Ice::Application(Ice::NoSignalHandling) { } @@ -56,7 +61,6 @@ NrvoClient::run(int argc, char* argv[]) menu(); - char currentOperation = '1'; char c; do { @@ -65,54 +69,59 @@ NrvoClient::run(int argc, char* argv[]) cout << "==> "; cin >> c; - if(c == '1' || c == '2' || c == '3' || c == 's' || c == '?' || c == 'x') - { - currentOperation = c; - switch(c) - { - case '1': - { - cout << "calling op1" << endl; - MyStringSeq seq = nrvo->op1(); - break; - } - - case '2': - { - cout << "calling op2" << endl; - MyStringSeq seq = nrvo->op2(); - break; - } - - case '3': - { - cout << "calling op3" << endl; - MyStringSeq seq = nrvo->op3(10); - break; - } - - case 's': - { - nrvo->shutdown(); - } - - case '?': - { - menu(); - break; - } - - case 'x': - { - break; - } - } - } - else - { - cout << "unknown command `" << c << "'" << endl; - menu(); - } + switch(c) + { + case '1': + { + cout << "calling op1" << endl; + MyStringSeq seq = nrvo->op1(); + break; + } + + case '2': + { + cout << "calling op2" << endl; + MyStringSeq seq = nrvo->op2(); + break; + } + + case '3': + { + cout << "calling op3(10)" << endl; + MyStringSeq seq = nrvo->op3(10); + break; + } + + case '4': + { + cout << "calling op3(0)" << endl; + MyStringSeq seq = nrvo->op3(0); + break; + } + + case 's': + { + nrvo->shutdown(); + break; + } + + case '?': + { + menu(); + break; + } + + case 'x': + { + break; + } + default: + { + cout << "unknown command `" << c << "'" << endl; + menu(); + break; + } + } } catch(const Ice::Exception& ex) { @@ -124,7 +133,6 @@ NrvoClient::run(int argc, char* argv[]) return EXIT_SUCCESS; } - void NrvoClient::menu() { @@ -132,10 +140,11 @@ NrvoClient::menu() "usage:\n" "\n" "Operation to call:\n" - "1: return a string sequence.\n" - "2: return a string sequence that is a data member of the servant.\n" - "3: return a string sequence from an operation with multiple return path.\n" - "s: shutdown server.\n" - "x: exit.\n" - "?: show this menu.\n"; + "1: return a string sequence\n" + "2: return a string sequence that is a data member of the servant\n" + "3: return a string sequence from an operation with multiple return paths\n" + "4: return a string sequence from an operation with multiple return paths, using RVO\n" + "s: shutdown server\n" + "x: exit\n" + "?: show this menu\n"; } diff --git a/cpp/demo/Ice/nrvo/Ice.nrvo.client.dsp b/cpp/demo/Ice/nrvo/Ice.nrvo.client.dsp new file mode 100755 index 00000000000..438db2d9d81 --- /dev/null +++ b/cpp/demo/Ice/nrvo/Ice.nrvo.client.dsp @@ -0,0 +1,165 @@ +# Microsoft Developer Studio Project File - Name="Ice.nrvo.client.exe" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=Ice.nrvo.client.exe - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "Ice.nrvo.client.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "Ice.nrvo.client.mak" CFG="Ice.nrvo.client.exe - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "Ice.nrvo.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.nrvo.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "Ice.nrvo.client.exe - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /MD /W3 /WX /GR /GX /O2 /I "." /I "../../../include" /I "../../../include/stlport" /D "_CONSOLE" /D "NDEBUG" /D "WIN32_LEAN_AND_MEAN" /FD /c
+# SUBTRACT CPP /Fr /YX
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
+# SUBTRACT LINK32 /debug /nodefaultlib
+
+!ELSEIF "$(CFG)" == "Ice.nrvo.client.exe - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /WX /Gm /GR /GX /Zi /Od /I "." /I "../../../include" /I "../../../include/stlport" /D "_CONSOLE" /D "_DEBUG" /D "WIN32_LEAN_AND_MEAN" /FD /GZ /c
+# SUBTRACT CPP /Fr /YX
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 Iced.lib IceUtild.lib setargv.obj /nologo /subsystem:console /debug /machine:I386 /out:"client.exe" /pdbtype:sept /libpath:"../../../lib" /FIXED:no
+# SUBTRACT LINK32 /pdb:none
+
+!ENDIF
+
+# Begin Target
+
+# Name "Ice.nrvo.client.exe - Win32 Release"
+# Name "Ice.nrvo.client.exe - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\Client.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\MyStringSeq.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\Nrvo.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=.\MyStringSeq.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\Nrvo.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# Begin Source File
+
+SOURCE=.\Nrvo.ice
+
+!IF "$(CFG)" == "Ice.nrvo.client.exe - Win32 Release"
+
+USERDEP__NRVO_="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
+# Begin Custom Build
+InputPath=.\Nrvo.ice
+
+BuildCmds= \
+ ..\..\..\bin\slice2cpp.exe Nrvo.ice
+
+"Nrvo.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ $(BuildCmds)
+
+"Nrvo.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ $(BuildCmds)
+# End Custom Build
+
+!ELSEIF "$(CFG)" == "Ice.nrvo.client.exe - Win32 Debug"
+
+USERDEP__NRVO_="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
+# Begin Custom Build
+InputPath=.\Nrvo.ice
+
+BuildCmds= \
+ ..\..\..\bin\slice2cpp.exe Nrvo.ice
+
+"Nrvo.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ $(BuildCmds)
+
+"Nrvo.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ $(BuildCmds)
+# End Custom Build
+
+!ENDIF
+
+# End Source File
+# End Group
+# Begin Source File
+
+SOURCE=.\README
+# End Source File
+# End Target
+# End Project
diff --git a/cpp/demo/Ice/nrvo/Ice.nrvo.server.dsp b/cpp/demo/Ice/nrvo/Ice.nrvo.server.dsp new file mode 100755 index 00000000000..7a8be43bde1 --- /dev/null +++ b/cpp/demo/Ice/nrvo/Ice.nrvo.server.dsp @@ -0,0 +1,169 @@ +# Microsoft Developer Studio Project File - Name="Ice.nrvo.server.exe" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Console Application" 0x0103
+
+CFG=Ice.nrvo.server.exe - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "Ice.nrvo.server.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "Ice.nrvo.server.mak" CFG="Ice.nrvo.server.exe - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "Ice.nrvo.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.nrvo.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "Ice.nrvo.server.exe - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
+# ADD CPP /nologo /MD /W3 /WX /GR /GX /O2 /I "." /I "../../../include" /I "../../../include/stlport" /D "_CONSOLE" /D "NDEBUG" /D "WIN32_LEAN_AND_MEAN" /FD /c
+# SUBTRACT CPP /Fr /YX
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
+# SUBTRACT LINK32 /debug /nodefaultlib
+
+!ELSEIF "$(CFG)" == "Ice.nrvo.server.exe - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /WX /Gm /GR /GX /Zi /Od /I "." /I "../../../include" /I "../../../include/stlport" /D "_CONSOLE" /D "_DEBUG" /D "WIN32_LEAN_AND_MEAN" /FD /GZ /c
+# SUBTRACT CPP /Fr /YX
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 Iced.lib IceUtild.lib setargv.obj /nologo /subsystem:console /debug /machine:I386 /out:"server.exe" /pdbtype:sept /libpath:"../../../lib" /FIXED:no
+# SUBTRACT LINK32 /pdb:none
+
+!ENDIF
+
+# Begin Target
+
+# Name "Ice.nrvo.server.exe - Win32 Release"
+# Name "Ice.nrvo.server.exe - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\MyStringSeq.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\Nrvo.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\NrvoI.cpp
+# End Source File
+# Begin Source File
+
+SOURCE=.\Server.cpp
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=.\Nrvo.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\NrvoI.h
+# End Source File
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# Begin Source File
+
+SOURCE=.\Nrvo.ice
+
+!IF "$(CFG)" == "Ice.nrvo.server.exe - Win32 Release"
+
+USERDEP__NRVO_="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
+# Begin Custom Build
+InputPath=.\Nrvo.ice
+
+BuildCmds= \
+ ..\..\..\bin\slice2cpp.exe Nrvo.ice
+
+"Nrvo.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ $(BuildCmds)
+
+"Nrvo.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ $(BuildCmds)
+# End Custom Build
+
+!ELSEIF "$(CFG)" == "Ice.nrvo.server.exe - Win32 Debug"
+
+USERDEP__NRVO_="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
+# Begin Custom Build
+InputPath=.\Nrvo.ice
+
+BuildCmds= \
+ ..\..\..\bin\slice2cpp.exe Nrvo.ice
+
+"Nrvo.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ $(BuildCmds)
+
+"Nrvo.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ $(BuildCmds)
+# End Custom Build
+
+!ENDIF
+
+# End Source File
+# End Group
+# Begin Source File
+
+SOURCE=.\README
+# End Source File
+# End Target
+# End Project
diff --git a/cpp/demo/Ice/nrvo/Makefile b/cpp/demo/Ice/nrvo/Makefile index d5159ce9b82..9afd1a5ee45 100644 --- a/cpp/demo/Ice/nrvo/Makefile +++ b/cpp/demo/Ice/nrvo/Makefile @@ -14,7 +14,8 @@ SERVER = server TARGETS = $(CLIENT) $(SERVER) -OBJS = Nrvo.o +OBJS = Nrvo.o \ + MyStringSeq.o COBJS = Client.o diff --git a/cpp/demo/Ice/nrvo/Makefile.mak b/cpp/demo/Ice/nrvo/Makefile.mak index 48784e0328d..70ff1c4343a 100644 --- a/cpp/demo/Ice/nrvo/Makefile.mak +++ b/cpp/demo/Ice/nrvo/Makefile.mak @@ -14,7 +14,8 @@ SERVER = server.exe TARGETS = $(CLIENT) $(SERVER)
-OBJS = Nrvo.obj
+OBJS = Nrvo.obj \
+ MyStringSeq.obj
COBJS = Client.obj
diff --git a/cpp/demo/Ice/nrvo/MyStringSeq.cpp b/cpp/demo/Ice/nrvo/MyStringSeq.cpp new file mode 100644 index 00000000000..240f42f6fb6 --- /dev/null +++ b/cpp/demo/Ice/nrvo/MyStringSeq.cpp @@ -0,0 +1,34 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <MyStringSeq.h> + +#include <iostream> + +using namespace std; + +MyStringSeq::MyStringSeq() +{ +} + +MyStringSeq::MyStringSeq(size_t n) : + vector<string>(n) +{ +} + +MyStringSeq::MyStringSeq(size_t n, const string& str) : + vector<string>(n, str) +{ +} + +MyStringSeq::MyStringSeq(const MyStringSeq& seq) : + vector<string>(seq) +{ + cout << "MyStringSeq copy ctor" << endl; +} diff --git a/cpp/demo/Ice/nrvo/MyStringSeq.h b/cpp/demo/Ice/nrvo/MyStringSeq.h index e5adfc4b45e..54e057a7836 100644 --- a/cpp/demo/Ice/nrvo/MyStringSeq.h +++ b/cpp/demo/Ice/nrvo/MyStringSeq.h @@ -1,32 +1,31 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + #ifndef MY_STRING_SEQ #define MY_STRING_SEQ +#include <IceUtil/Config.h> #include <vector> #include <string> -#include <iostream> class MyStringSeq : public std::vector<std::string> { public: - MyStringSeq() - {} + MyStringSeq(); + + MyStringSeq(size_t); - MyStringSeq(size_t n) : - std::vector<std::string>(n) - { - } + MyStringSeq(size_t, const std::string&); - MyStringSeq(size_t n, const std::string& str) : - std::vector<std::string>(n, str) - { - } + MyStringSeq(const MyStringSeq&); - MyStringSeq(const MyStringSeq& seq) : - std::vector<std::string>(seq) - { - std::cout << "MyStringSeq copy ctor" << std::endl; - } }; #endif diff --git a/cpp/demo/Ice/nrvo/Nrvo.ice b/cpp/demo/Ice/nrvo/Nrvo.ice index 4e52b8f5e6f..db293f2ee5a 100644 --- a/cpp/demo/Ice/nrvo/Nrvo.ice +++ b/cpp/demo/Ice/nrvo/Nrvo.ice @@ -10,12 +10,12 @@ #ifndef NRVO_ICE #define NRVO_ICE +[["cpp:include:MyStringSeq.h"]] + module Demo { -[["cpp:include:MyStringSeq.h"]] ["cpp:type:MyStringSeq"] sequence<string> StringSeq; -const int StringSeqSize = 50000; interface Nrvo { diff --git a/cpp/demo/Ice/nrvo/NrvoI.cpp b/cpp/demo/Ice/nrvo/NrvoI.cpp index dea09e60bed..656a3e400f2 100644 --- a/cpp/demo/Ice/nrvo/NrvoI.cpp +++ b/cpp/demo/Ice/nrvo/NrvoI.cpp @@ -8,24 +8,34 @@ // ********************************************************************** #include <Ice/Ice.h> -#include <iostream> #include <NrvoI.h> using namespace std; NrvoI::NrvoI() : - _stringSeq(Demo::StringSeqSize, "hello") + _stringSeq(10, "hello") { } +// +// NRVO (Named Return Value Optimization): +// the return value is a stack-allocated variable, +// and there is only a single return path. +// Demo::StringSeq NrvoI::op1(const Ice::Current&) { cout << "running op1" << endl; - MyStringSeq seq = MyStringSeq(Demo::StringSeqSize, "hello"); + // + // Not "return MyStringSeq(10, "hello")", since this lacks a name. + // + MyStringSeq seq = MyStringSeq(10, "hello"); return seq; } +// +// No optimization: the return value is a data member. +// Demo::StringSeq NrvoI::op2(const Ice::Current&) { @@ -33,20 +43,30 @@ NrvoI::op2(const Ice::Current&) return _stringSeq; } + +// +// Operation with multiple return paths. +// Demo::StringSeq NrvoI::op3(int size, const Ice::Current&) { cout << "running op3" << endl; - MyStringSeq seq; if(size < 10) { + // + // RVO (Return Value Optimization): return value + // is constructed in place. + // return MyStringSeq(size, "hello"); } - seq = MyStringSeq(10, "hello"); + + // + // No optimization: NRVO requires a single return path. + // + MyStringSeq seq = MyStringSeq(10, "hello"); return seq; } - void NrvoI::shutdown(const Ice::Current& c) { diff --git a/cpp/demo/Ice/nrvo/NrvoI.h b/cpp/demo/Ice/nrvo/NrvoI.h index d92931f193d..0328ae6b98a 100644 --- a/cpp/demo/Ice/nrvo/NrvoI.h +++ b/cpp/demo/Ice/nrvo/NrvoI.h @@ -20,7 +20,7 @@ public: NrvoI(); virtual Demo::StringSeq op1(const Ice::Current&); virtual Demo::StringSeq op2(const Ice::Current&); - virtual Demo::StringSeq op3(int size, const Ice::Current&); + virtual Demo::StringSeq op3(int, const Ice::Current&); virtual void shutdown(const Ice::Current&); private: diff --git a/cpp/demo/Ice/nrvo/README b/cpp/demo/Ice/nrvo/README index 7cfbfe674a6..b2fa42af41e 100644 --- a/cpp/demo/Ice/nrvo/README +++ b/cpp/demo/Ice/nrvo/README @@ -1,17 +1,17 @@ +A simple demo that shows how Ice takes advantage of NRVO (Named +Return Value Optimization), which is implemented by modern C++ +compilers. -A simple demo that show how Ice take advantage of NRVO -(Named Return Value Optimization) include in modern c++ compilers. +GCC and Microsoft Visual Studio compilers support this optimization. -GCC and Visual Studio compilers support this optimization +You can read more about Visual Studio NRVO at: - You could read more about Visual Studio NRVO at: + * http://msdn.microsoft.com/en-us/library/ms364057(VS.80).aspx - * http://msdn.microsoft.com/en-us/library/ms364057(VS.80).aspx +For GCC, NRVO was first introduced in version 3.1. See the release +changes at: - For GCC NRVO was first introduced in gcc-3.1 see the release - changes at: - - * http://www.gnu.org/software/gcc/gcc-3.1/changes.html + * http://www.gnu.org/software/gcc/gcc-3.1/changes.html To run the demo, first start the server: @@ -21,29 +21,26 @@ In a separate window, start the client: $ client -When you start the client it show you a menu with different -operations, you can invoke each operation pressing the corresponding -key. - -All this operations return a string sequence mapped to a custom class -MyStringSeq, when a copy is made the message "MyStringSeq copy ctor" -is wrote to the console, this permit you see what copies of the -returned data are made by Ice run time. - -To make sure the optimizations are applied you should compile the demo -with optimizations enabled. - -If you call an operation the client and server should print a message -"calling <operation name>" and bellow that message you will see as -many "MyStringSeq copy ctor" messages as copies are made. - -In the server side we show one case when NRVO works, that is a -function that has a single return path implemented and is -implementation is NrvoI::op1, and two case where NRVO don't work, a -function that return a data member of the servant the implementation -is in NrvoI::op2 and a function with multiple returns path -implemented in NrvoI::op3. - -So if you press option 1 you will see that NRVO is apply in both -client and server sides, and if you call 2 or 3 the optimization only -apply to client side. +The client presents a menu of options that you can invoke by pressing +the corresponding key. All of these operations return a string +sequence mapped to the custom class MyStringSeq. This class prints +the message "MyStringSeq copy ctor" each time it is copied so that you +can see when copies of the returned data are made by the Ice run time. + +With Visual C++, you must compile with optimization for NRVO to be +enabled. GCC applies NRVO whether the code is optimized or not. + +In the server, we show one case when NRVO works: a function that has a +single return path implemented in NrvoI::op1. There are also two cases +where NRVO doesn't work: a function that returns a data member of +the servant (NrvoI::op2) and a function with multiple return paths +(NrvoI::op3). + +Invoking op1 demonstrates that NRVO is applied in both the client and +the server, whereas for op2 and op3 NRVO is only applied in the +client. + +The client can also invoke op3 such that RVO (Return Value Optimization) +is applied for a return statement with in-place construction. (See +http://www.efnetcpp.org/wiki/Return_value_optimization for information +on RVO.) diff --git a/cpp/demo/Ice/nrvo/Server.cpp b/cpp/demo/Ice/nrvo/Server.cpp index 4ab12e580e4..104960f5a1d 100644 --- a/cpp/demo/Ice/nrvo/Server.cpp +++ b/cpp/demo/Ice/nrvo/Server.cpp @@ -36,8 +36,7 @@ NrvotServer::run(int argc, char* argv[]) } Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Nrvo"); - Demo::NrvoPtr servant = new NrvoI(); - adapter->add(servant, communicator()->stringToIdentity("nrvo")); + adapter->add(new NrvoI(), communicator()->stringToIdentity("nrvo")); adapter->activate(); communicator()->waitForShutdown(); return EXIT_SUCCESS; diff --git a/cpp/demo/Ice/nrvo/config.client b/cpp/demo/Ice/nrvo/config.client index c582c4dd677..7b00352d558 100644 --- a/cpp/demo/Ice/nrvo/config.client +++ b/cpp/demo/Ice/nrvo/config.client @@ -1,13 +1,8 @@ # # The client reads this property to create the reference to the -# "Throughput" object in the server. +# "Nrvo" object in the server. # -Nrvo.Proxy=nrvo:default -p 10000 -h 127.0.0.1 - -# -# Disable client-side ACM. -# -Ice.ACM.Client=0 +Nrvo.Proxy=nrvo:default -p 10000 # # SSL Configuration diff --git a/cpp/demo/Ice/nrvo/config.server b/cpp/demo/Ice/nrvo/config.server index 2a90e37a37c..a98f09fe187 100644 --- a/cpp/demo/Ice/nrvo/config.server +++ b/cpp/demo/Ice/nrvo/config.server @@ -1,9 +1,9 @@ # # The server creates one single object adapter with the name -# "Throughput". The following line sets the endpoints for this +# "Nrvo". The following line sets the endpoints for this # adapter. # -Nrvo.Endpoints=default -p 10000 -h 127.0.0.1 +Nrvo.Endpoints=default -p 10000 # # Warn about connection exceptions diff --git a/cpp/demo/Ice/protobuf/.depend b/cpp/demo/Ice/protobuf/.depend new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/cpp/demo/Ice/protobuf/.depend diff --git a/cpp/demo/Ice/protobuf/.gitignore b/cpp/demo/Ice/protobuf/.gitignore new file mode 100644 index 00000000000..0c7a711fcec --- /dev/null +++ b/cpp/demo/Ice/protobuf/.gitignore @@ -0,0 +1,9 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +client +server +Hello.cpp +Hello.h +Person.pb.cpp +Person.pb.h diff --git a/cpp/demo/Ice/protobuf/Client.cpp b/cpp/demo/Ice/protobuf/Client.cpp new file mode 100644 index 00000000000..0baae8f5248 --- /dev/null +++ b/cpp/demo/Ice/protobuf/Client.cpp @@ -0,0 +1,116 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <Hello.h> + +using namespace std; +using namespace Demo; + +class HelloClient : public Ice::Application +{ +public: + + HelloClient(); + + virtual int run(int, char*[]); + +private: + + void menu(); +}; + +int +main(int argc, char* argv[]) +{ + HelloClient app; + return app.main(argc, argv, "config.client"); +} + +HelloClient::HelloClient() : + // + // Since this is an interactive demo we don't want any signal + // handling. + // + Ice::Application(Ice::NoSignalHandling) +{ +} + +int +HelloClient::run(int argc, char* argv[]) +{ + if(argc > 1) + { + cerr << appName() << ": too many arguments" << endl; + return EXIT_FAILURE; + } + + HelloPrx hello = HelloPrx::checkedCast(communicator()->propertyToProxy("Hello.Proxy")); + if(!hello) + { + cerr << argv[0] << ": invalid proxy" << endl; + return EXIT_FAILURE; + } + + tutorial::Person p; + p.set_id(1); + p.set_name("Fred Jones"); + p.set_email("fred@jones.com"); + + menu(); + + char c; + do + { + try + { + cout << "==> "; + cin >> c; + if(c == 't') + { + hello->sayHello(p); + } + else if(c == 's') + { + hello->shutdown(); + } + else if(c == 'x') + { + // Nothing to do + } + else if(c == '?') + { + menu(); + } + else + { + cout << "unknown command `" << c << "'" << endl; + menu(); + } + } + catch(const Ice::Exception& ex) + { + cerr << ex << endl; + } + } + while(cin.good() && c != 'x'); + + return EXIT_SUCCESS; +} + +void +HelloClient::menu() +{ + cout << + "usage:\n" + "t: send greeting\n" + "s: shutdown server\n" + "x: exit\n" + "?: help\n"; +} diff --git a/cpp/demo/Ice/protobuf/Hello.ice b/cpp/demo/Ice/protobuf/Hello.ice new file mode 100644 index 00000000000..3453d0a9fa9 --- /dev/null +++ b/cpp/demo/Ice/protobuf/Hello.ice @@ -0,0 +1,29 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#ifndef HELLO_ICE +#define HELLO_ICE + +[["cpp:include:Person.pb.h"]] + +module Demo +{ + +["cpp:protobuf:tutorial::Person", "java:protobuf:tutorial.PersonPB.Person", "python:protobuf:Person_pb2.Person"] +sequence<byte> Person; + +interface Hello +{ + idempotent void sayHello(Person p); + void shutdown(); +}; + +}; + +#endif diff --git a/cpp/demo/Ice/protobuf/HelloI.cpp b/cpp/demo/Ice/protobuf/HelloI.cpp new file mode 100644 index 00000000000..7ea465805f6 --- /dev/null +++ b/cpp/demo/Ice/protobuf/HelloI.cpp @@ -0,0 +1,27 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <IceUtil/IceUtil.h> +#include <Ice/Ice.h> +#include <HelloI.h> + +using namespace std; + +void +HelloI::sayHello(const tutorial::Person& p, const Ice::Current&) +{ + cout << "Hello World from " << p.DebugString() << endl; +} + +void +HelloI::shutdown(const Ice::Current& c) +{ + cout << "Shutting down..." << endl; + c.adapter->getCommunicator()->shutdown(); +} diff --git a/cpp/demo/Ice/protobuf/HelloI.h b/cpp/demo/Ice/protobuf/HelloI.h new file mode 100644 index 00000000000..e82667964ab --- /dev/null +++ b/cpp/demo/Ice/protobuf/HelloI.h @@ -0,0 +1,23 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#ifndef HELLO_I_H +#define HELLO_I_H + +#include <Hello.h> + +class HelloI : public Demo::Hello +{ +public: + + virtual void sayHello(const tutorial::Person& p, const Ice::Current&); + virtual void shutdown(const Ice::Current&); +}; + +#endif diff --git a/cpp/demo/Ice/protobuf/Ice.protobuf.client.vcproj b/cpp/demo/Ice/protobuf/Ice.protobuf.client.vcproj new file mode 100755 index 00000000000..2a3f84ca9e6 --- /dev/null +++ b/cpp/demo/Ice/protobuf/Ice.protobuf.client.vcproj @@ -0,0 +1,267 @@ +<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="Ice.protobuf.client"
+ ProjectGUID="{DCB7823F-3422-4953-98B3-168624FE3725}"
+ RootNamespace="Iceprotobufclient"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)"
+ IntermediateDirectory="$(SolutionDir)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="., ..\..\..\include"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="0"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="iced.lib iceutild.lib setargv.obj libprotobufd.lib"
+ OutputFile="client.exe"
+ LinkIncremental="2"
+ AdditionalLibraryDirectories="..\..\..\lib"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ EmbedManifest="false"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)"
+ IntermediateDirectory="$(SolutionDir)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="., ..\..\..\include"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ RuntimeLibrary="2"
+ UsePrecompiledHeader="0"
+ WarningLevel="0"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="ice.lib iceutil.lib setargv.obj libprotobuf.lib"
+ OutputFile="client.exe"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories="..\..\..\lib"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ EmbedManifest="false"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath=".\Client.cpp"
+ >
+ </File>
+ <File
+ RelativePath=".\Hello.cpp"
+ >
+ </File>
+ <File
+ RelativePath=".\Person.pb.cpp"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath=".\Hello.h"
+ >
+ </File>
+ <File
+ RelativePath=".\Person.pb.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ <File
+ RelativePath=".\Hello.ice"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ CommandLine="if exist ../../../slice (set sliceDir=../../../slice) else set sliceDir=../../../../slice
..\..\..\bin\slice2cpp.exe -I%sliceDir% Hello.ice
"
+ Outputs="Hello.cpp Hello.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ CommandLine="if exist ../../../slice (set sliceDir=../../../slice) else set sliceDir=../../../../slice
..\..\..\bin\slice2cpp.exe -I%sliceDir% Hello.ice
"
+ Outputs="Hello.cpp Hello.h"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath=".\Person.proto"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ CommandLine="protoc --cpp_out=. Person.proto
move Person.pb.cc Person.pb.cpp
"
+ Outputs="Person.pb.cpp Person.pb.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ CommandLine="protoc --cpp_out=. Person.proto
move Person.pb.cc Person.pb.cpp
"
+ Outputs="Person.pb.cpp Person.pb.h"
+ />
+ </FileConfiguration>
+ </File>
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/cpp/demo/Ice/protobuf/Ice.protobuf.server.vcproj b/cpp/demo/Ice/protobuf/Ice.protobuf.server.vcproj new file mode 100755 index 00000000000..ea63b1f8e06 --- /dev/null +++ b/cpp/demo/Ice/protobuf/Ice.protobuf.server.vcproj @@ -0,0 +1,271 @@ +<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8.00"
+ Name="Ice.protobuf.server"
+ ProjectGUID="{F32F46FF-5503-4639-9F9D-43477C6DA3BD}"
+ RootNamespace="Iceprotobufserver"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)"
+ IntermediateDirectory="$(SolutionDir)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="., ..\..\..\include"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="true"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ UsePrecompiledHeader="0"
+ WarningLevel="0"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="4"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="iced.lib iceutild.lib setargv.obj libprotobufd.lib"
+ OutputFile="server.exe"
+ LinkIncremental="2"
+ AdditionalLibraryDirectories="..\..\..\lib"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ EmbedManifest="false"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)"
+ IntermediateDirectory="$(SolutionDir)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="., ..\..\..\include"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ RuntimeLibrary="2"
+ UsePrecompiledHeader="0"
+ WarningLevel="0"
+ Detect64BitPortabilityProblems="true"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="Ice.lib IceUtil.lib setargv.obj libprotobuf.lib"
+ OutputFile="server.exe"
+ LinkIncremental="1"
+ AdditionalLibraryDirectories="..\..\..\lib"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ EmbedManifest="false"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCWebDeploymentTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+ >
+ <File
+ RelativePath=".\Hello.cpp"
+ >
+ </File>
+ <File
+ RelativePath=".\HelloI.cpp"
+ >
+ </File>
+ <File
+ RelativePath=".\Person.pb.cpp"
+ >
+ </File>
+ <File
+ RelativePath=".\Server.cpp"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath=".\Hello.h"
+ >
+ </File>
+ <File
+ RelativePath=".\Person.pb.h"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+ >
+ <File
+ RelativePath=".\Hello.ice"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ CommandLine="if exist ../../../slice (set sliceDir=../../../slice) else set sliceDir=../../../../slice
..\..\..\bin\slice2cpp.exe -I%sliceDir% Hello.ice
"
+ Outputs="Hello.cpp Hello.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ CommandLine="if exist ../../../slice (set sliceDir=../../../slice) else set sliceDir=../../../../slice
..\..\..\bin\slice2cpp.exe -I%sliceDir% Hello.ice
"
+ Outputs="Hello.cpp Hello.h"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath=".\Person.proto"
+ >
+ <FileConfiguration
+ Name="Debug|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ CommandLine="protoc --cpp_out=. Person.proto
move Person.pb.cc Person.pb.cpp
"
+ Outputs="Person.pb.cpp Person.pb.h"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32"
+ >
+ <Tool
+ Name="VCCustomBuildTool"
+ CommandLine="protoc --cpp_out=. Person.proto
move Person.pb.cc Person.pb.cpp
"
+ Outputs="Person.pb.cpp Person.pb.h"
+ />
+ </FileConfiguration>
+ </File>
+ </Filter>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/cpp/demo/Ice/protobuf/Ice.protobuf.sln b/cpp/demo/Ice/protobuf/Ice.protobuf.sln new file mode 100755 index 00000000000..557ba920445 --- /dev/null +++ b/cpp/demo/Ice/protobuf/Ice.protobuf.sln @@ -0,0 +1,29 @@ +
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ice.protobuf.client", "Ice.protobuf.client.vcproj", "{DCB7823F-3422-4953-98B3-168624FE3725}"
+ ProjectSection(ProjectDependencies) = postProject
+ {F32F46FF-5503-4639-9F9D-43477C6DA3BD} = {F32F46FF-5503-4639-9F9D-43477C6DA3BD}
+ EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ice.protobuf.server", "Ice.protobuf.server.vcproj", "{F32F46FF-5503-4639-9F9D-43477C6DA3BD}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {DCB7823F-3422-4953-98B3-168624FE3725}.Debug|Win32.ActiveCfg = Debug|Win32
+ {DCB7823F-3422-4953-98B3-168624FE3725}.Debug|Win32.Build.0 = Debug|Win32
+ {DCB7823F-3422-4953-98B3-168624FE3725}.Release|Win32.ActiveCfg = Release|Win32
+ {DCB7823F-3422-4953-98B3-168624FE3725}.Release|Win32.Build.0 = Release|Win32
+ {F32F46FF-5503-4639-9F9D-43477C6DA3BD}.Debug|Win32.ActiveCfg = Debug|Win32
+ {F32F46FF-5503-4639-9F9D-43477C6DA3BD}.Debug|Win32.Build.0 = Debug|Win32
+ {F32F46FF-5503-4639-9F9D-43477C6DA3BD}.Release|Win32.ActiveCfg = Release|Win32
+ {F32F46FF-5503-4639-9F9D-43477C6DA3BD}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/cpp/demo/Ice/protobuf/Makefile b/cpp/demo/Ice/protobuf/Makefile new file mode 100644 index 00000000000..33f02dcecb5 --- /dev/null +++ b/cpp/demo/Ice/protobuf/Makefile @@ -0,0 +1,66 @@ +# ********************************************************************** +# +# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +# +# If protobuf is not installed in a standard location where the +# compiler can find it, set PROTOBUF_HOME to the protobuf installation +# directory. +# +PROTOBUF_HOME ?= /usr/local + +top_srcdir = ../../.. + +CLIENT = client +SERVER = server + +TARGETS = $(CLIENT) $(SERVER) + +OBJS = Hello.o \ + Person.pb.o + +COBJS = Client.o + +SOBJS = HelloI.o \ + Server.o + +SRCS = $(OBJS:.o=.cpp) \ + $(COBJS:.o=.cpp) \ + $(SOBJS:.o=.cpp) + +SLICE_SRCS = Hello.ice +PROTO_SRCS = Person.proto + +include $(top_srcdir)/config/Make.rules + +CPPFLAGS := -I$(PROTOBUF_HOME)/include -I. $(CPPFLAGS) +LIBS := $(LIBS) -L$(PROTOBUF_HOME)/lib -lprotobuf + +$(CLIENT): $(OBJS) $(COBJS) + rm -f $@ + $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(LIBS) + +$(SERVER): $(OBJS) $(SOBJS) + rm -f $@ + $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(SOBJS) $(LIBS) + +%..pb.h %.pb.cpp: %.proto + rm -f $(*F).pb.h $(*F).pb.cpp + $(PROTOBUF_HOME)/bin/protoc --cpp_out=. $(*F).proto + mv $(*F).pb.cc $(*F).pb.cpp + +depend:: + for i in $(PROTO_SRCS); do \ + echo "$${i%.proto}.pb.cpp: $$i" >> .depend; \ + done + +clean:: + rm -f $(addsuffix .pb.cpp, $(basename $(notdir $(PROTO_SRCS)))) + rm -f $(addsuffix .pb.h, $(basename $(notdir $(PROTO_SRCS)))) + +include .depend diff --git a/cpp/demo/Ice/protobuf/Makefile.mak b/cpp/demo/Ice/protobuf/Makefile.mak new file mode 100644 index 00000000000..612b36cce0a --- /dev/null +++ b/cpp/demo/Ice/protobuf/Makefile.mak @@ -0,0 +1,74 @@ +#**********************************************************************
+#
+# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
+#
+# This copy of Ice is licensed to you under the terms described in the
+# ICE_LICENSE file included in this distribution.
+#
+# **********************************************************************
+
+#
+# If protobuf is not installed in a standard location where the
+# compiler can find it, set PROTOBUF_HOME to the protobuf installation
+# directory.
+#
+!if "$(PROTOBUF_HOME)" == ""
+PROTOBUF_HOME = c:\protobuf
+!endif
+
+top_srcdir = ..\..\..
+
+CLIENT = client.exe
+SERVER = server.exe
+
+TARGETS = $(CLIENT) $(SERVER)
+
+OBJS = Hello.obj \
+ Person.pb.obj
+
+COBJS = Client.obj
+
+SOBJS = HelloI.obj \
+ Server.obj
+
+SRCS = $(OBJS:.obj=.cpp) \
+ $(COBJS:.obj=.cpp) \
+ $(SOBJS:.obj=.cpp)
+
+!include $(top_srcdir)/config/Make.rules.mak
+
+# Need to use -W0 to gid rid of ugly warnings from generated protobuf file as
+# well as prevent compile failure on x64 due to warnings from protobuf headers
+CPPFLAGS = -I$(PROTOBUF_HOME)\include -I. $(CPPFLAGS) -DWIN32_LEAN_AND_MEAN -W0
+
+LIBS = $(LIBS) /libpath:$(PROTOBUF_HOME)\lib libprotobuf$(LIBSUFFIX).lib
+
+!if "$(GENERATE_PDB)" == "yes"
+CPDBFLAGS = /pdb:$(CLIENT:.exe=.pdb)
+SPDBFLAGS = /pdb:$(SERVER:.exe=.pdb)
+!endif
+
+$(CLIENT): $(OBJS) $(COBJS)
+ $(LINK) $(LD_EXEFLAGS) $(CPDBFLAGS) $(SETARGV) $(OBJS) $(COBJS) $(PREOUT)$@ $(PRELIBS)$(LIBS)
+ @if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
+ $(MT) -nologo -manifest $@.manifest -outputresource:$@;#1 && del /q $@.manifest
+
+$(SERVER): $(OBJS) $(SOBJS)
+ $(LINK) $(LD_EXEFLAGS) $(SPDBFLAGS) $(SETARGV) $(OBJS) $(SOBJS) $(PREOUT)$@ $(PRELIBS)$(LIBS)
+ @if exist $@.manifest echo ^ ^ ^ Embedding manifest using $(MT) && \
+ $(MT) -nologo -manifest $@.manifest -outputresource:$@;#1 && del /q $@.manifest
+
+# A generic rule would be nicer, but since protoc generates .pb.cpp
+# it is not possible with nmake.
+Person.pb.cpp: Person.proto
+ del /q Person.pb.h Person.pb.cpp
+ $(PROTOBUF_HOME)\bin\protoc --cpp_out=. Person.proto
+ move Person.pb.cc Person.pb.cpp
+
+Person.pb.h: Person.pb.cpp
+
+clean::
+ del /q Hello.cpp Hello.h
+ del /q Person.pb.h Person.pb.cpp
+
+!include .depend
diff --git a/cpp/demo/Ice/protobuf/Person.proto b/cpp/demo/Ice/protobuf/Person.proto new file mode 100644 index 00000000000..b68990dbc48 --- /dev/null +++ b/cpp/demo/Ice/protobuf/Person.proto @@ -0,0 +1,16 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +package tutorial; + +message Person { + required int32 id = 1; + required string name = 2; + optional string email = 3; +} diff --git a/cpp/demo/Ice/protobuf/README b/cpp/demo/Ice/protobuf/README new file mode 100644 index 00000000000..0d5acf15057 --- /dev/null +++ b/cpp/demo/Ice/protobuf/README @@ -0,0 +1,103 @@ +This demo shows how to integrate Google Protocol Buffers with Ice. + +The Protocol Buffers distribution and documentation can be found at + + http://code.google.com/apis/protocolbuffers/ + +This demo was tested with Protocol Buffers version 2.0.3. + +We have added new metadata that makes it possible for you to specify +protocol buffers message types in your Slice definitions, with Ice +handling the serialization chores for you automatically. The metadata, +which may only be used on a sequence<byte> type, has the following +syntax in C++: + + cpp:protobuf[:protoc-generated-class] + +For example: + + ["cpp:protobuf:tutorial::Person"] sequence<byte> Person; + +The type name specified in this example, tutorial::Person, corresponds +to the C++ class generated by the Protocol Buffers compiler (protoc) +for the definition shown below: + + package tutorial; + message Person { ... }; + +If the metadata omits the type name, the Slice compiler assumes that +the message type resides in the same namespace as the Slice type. For +example, consider this Slice definition: + + module Demo + { + + ["cpp:protobuf"] sequence<byte> Person; + + }; + +In this case the Slice compiler assumes that the message type +corresponds to the C++ type Demo::Person, as shown in the following +definition: + + package Demo; + message Person { ... }; + +C++ users must also add another metadata directive so that the header +file generated by the protocol buffers compiler is included properly. +This metadata directive must appear before any other Slice definitions +and has the following syntax: + + [["cpp:include:Person.pb.h"]] + +If building on Windows, you should first see the `Windows Notes' +section below. + +If building from a source distribution or the demo package, please +review Makefile or Makefile.mak in this directory and adjust the value +of PROTOBUF_HOME to reflect the installation directory of Protocol +Buffers on your system. + +If building with the Visual Studio IDE, open the Ice.protobuf.sln +solution and choose + + Tools->Options->Projects and Solutions->VC++ Directories + +Add the Protocol Buffers bin directory to "Executable Files", the +include directory to "Include files", and the lib directory to +"Library files". Then select the target configuration (Debug or +Release), right-click on the solution in the Solution Explorer window +and select "Build Solution". + +To run the demo, first start the server: + + $ server + +In a separate window, start the client: + + $ client + + +Windows Notes +------------- + +The Procotol Buffers source package doesn't support automatic +installation. The build system for this demo (Makefile.mak and +Ice.protobuf.sln) assumes that you have compiled and manually +installed Protocol Buffers using the following directory structure: + +%PROTOBUF_HOME%\bin + + Contains protoc.exe + +%PROTOBUF_HOME%\lib + + Contains libprotobuf.lib and libprotobufd.lib, the release and + debug static libraries, respectively. (The debug library was + renamed to libprotobufd.lib.) + +%PROTOBUF_HOME%\include + + Contains the output of the extract_includes.bat batch file that + copies the include files contained in the Protocol Buffers + distribution. diff --git a/cpp/demo/Ice/protobuf/Server.cpp b/cpp/demo/Ice/protobuf/Server.cpp new file mode 100644 index 00000000000..e39445cd890 --- /dev/null +++ b/cpp/demo/Ice/protobuf/Server.cpp @@ -0,0 +1,44 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Ice/Ice.h> +#include <HelloI.h> + +using namespace std; + +class HelloServer : public Ice::Application +{ +public: + + virtual int run(int, char*[]); +}; + +int +main(int argc, char* argv[]) +{ + HelloServer app; + return app.main(argc, argv, "config.server"); +} + +int +HelloServer::run(int argc, char* argv[]) +{ + if(argc > 1) + { + cerr << appName() << ": too many arguments" << endl; + return EXIT_FAILURE; + } + + Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Hello"); + Demo::HelloPtr hello = new HelloI; + adapter->add(hello, communicator()->stringToIdentity("hello")); + adapter->activate(); + communicator()->waitForShutdown(); + return EXIT_SUCCESS; +} diff --git a/cpp/demo/Ice/protobuf/config.client b/cpp/demo/Ice/protobuf/config.client new file mode 100644 index 00000000000..a02cab0f4cb --- /dev/null +++ b/cpp/demo/Ice/protobuf/config.client @@ -0,0 +1,23 @@ +# +# The client reads this property to create the reference to the +# "hello" object in the server. +# +Hello.Proxy=hello:tcp -p 10000 + +# +# Network Tracing +# +# 0 = no network tracing +# 1 = trace connection establishment and closure +# 2 = like 1, but more detailed +# 3 = like 2, but also trace data transfer +# +#Ice.Trace.Network=1 + +# +# Protocol Tracing +# +# 0 = no protocol tracing +# 1 = trace protocol messages +# +#Ice.Trace.Protocol=1 diff --git a/cpp/demo/Ice/protobuf/config.server b/cpp/demo/Ice/protobuf/config.server new file mode 100644 index 00000000000..309db9731b2 --- /dev/null +++ b/cpp/demo/Ice/protobuf/config.server @@ -0,0 +1,24 @@ +# +# The server creates one single object adapter with the name +# "Hello". The following line sets the endpoints for this +# adapter. +# +Hello.Endpoints=tcp -p 10000 + +# +# Network Tracing +# +# 0 = no network tracing +# 1 = trace connection establishment and closure +# 2 = like 1, but more detailed +# 3 = like 2, but also trace data transfer +# +#Ice.Trace.Network=1 + +# +# Protocol Tracing +# +# 0 = no protocol tracing +# 1 = trace protocol messages +# +#Ice.Trace.Protocol=1 diff --git a/cpp/demo/Ice/protobuf/expect.py b/cpp/demo/Ice/protobuf/expect.py new file mode 100755 index 00000000000..eab2c166f54 --- /dev/null +++ b/cpp/demo/Ice/protobuf/expect.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +import sys, os + +path = [ ".", "..", "../..", "../../..", "../../../.." ] +head = os.path.dirname(sys.argv[0]) +if len(head) > 0: + path = [os.path.join(head, p) for p in path] +path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "demoscript")) ] +if len(path) == 0: + raise "can't find toplevel directory!" +sys.path.append(path[0]) + +from demoscript import * +from demoscript.Ice import protobuf + +server = Util.spawn('./server --Ice.PrintAdapterReady --Ice.Warn.Connections=0') +server.expect('.* ready') +client = Util.spawn('./client --Ice.Warn.Connections=0') +client.expect('.*==>') + +protobuf.run(client, server) diff --git a/cpp/demo/Ice/session/Ice.session.client.dsp b/cpp/demo/Ice/session/Ice.session.client.dsp index 83e0a7e335a..e944574259a 100644 --- a/cpp/demo/Ice/session/Ice.session.client.dsp +++ b/cpp/demo/Ice/session/Ice.session.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.session.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.session.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.session.client - Win32 Debug
+CFG=Ice.session.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.session.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.session.client.mak" CFG="Ice.session.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.session.client.mak" CFG="Ice.session.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.session.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.session.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.session.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.session.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.session.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.session.client - Win32 Release"
+!IF "$(CFG)" == "Ice.session.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.session.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.session.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.session.client - Win32 Release"
-# Name "Ice.session.client - Win32 Debug"
+# Name "Ice.session.client.exe - Win32 Release"
+# Name "Ice.session.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Session.h SOURCE=.\Session.ice
-!IF "$(CFG)" == "Ice.session.client - Win32 Release"
+!IF "$(CFG)" == "Ice.session.client.exe - Win32 Release"
USERDEP__SESSI="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -129,7 +129,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.session.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.session.client.exe - Win32 Debug"
USERDEP__SESSI="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/session/Ice.session.server.dsp b/cpp/demo/Ice/session/Ice.session.server.dsp index fc6c2e90285..d99a2889445 100644 --- a/cpp/demo/Ice/session/Ice.session.server.dsp +++ b/cpp/demo/Ice/session/Ice.session.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.session.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.session.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.session.server - Win32 Debug
+CFG=Ice.session.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.session.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.session.server.mak" CFG="Ice.session.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.session.server.mak" CFG="Ice.session.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.session.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.session.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.session.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.session.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.session.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.session.server - Win32 Release"
+!IF "$(CFG)" == "Ice.session.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.session.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.session.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.session.server - Win32 Release"
-# Name "Ice.session.server - Win32 Debug"
+# Name "Ice.session.server.exe - Win32 Release"
+# Name "Ice.session.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -137,7 +137,7 @@ SOURCE=.\SessionI.h SOURCE=.\Session.ice
-!IF "$(CFG)" == "Ice.session.server - Win32 Release"
+!IF "$(CFG)" == "Ice.session.server.exe - Win32 Release"
USERDEP__SESSI="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -153,7 +153,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.session.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.session.server.exe - Win32 Debug"
USERDEP__SESSI="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/throughput/Ice.throughput.client.dsp b/cpp/demo/Ice/throughput/Ice.throughput.client.dsp index 55c734873bc..af6d318d8b5 100644 --- a/cpp/demo/Ice/throughput/Ice.throughput.client.dsp +++ b/cpp/demo/Ice/throughput/Ice.throughput.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.throughput.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.throughput.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.throughput.client - Win32 Debug
+CFG=Ice.throughput.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.throughput.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.throughput.client.mak" CFG="Ice.throughput.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.throughput.client.mak" CFG="Ice.throughput.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.throughput.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.throughput.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.throughput.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.throughput.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.throughput.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.throughput.client - Win32 Release"
+!IF "$(CFG)" == "Ice.throughput.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ice.lib iceutil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 ice.lib iceutil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.throughput.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.throughput.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.throughput.client - Win32 Release"
-# Name "Ice.throughput.client - Win32 Debug"
+# Name "Ice.throughput.client.exe - Win32 Release"
+# Name "Ice.throughput.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -113,7 +113,7 @@ SOURCE=.\Throughput.h SOURCE=.\Throughput.ice
-!IF "$(CFG)" == "Ice.throughput.client - Win32 Release"
+!IF "$(CFG)" == "Ice.throughput.client.exe - Win32 Release"
USERDEP__THROU="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -129,7 +129,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.throughput.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.throughput.client.exe - Win32 Debug"
USERDEP__THROU="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/throughput/Ice.throughput.server.dsp b/cpp/demo/Ice/throughput/Ice.throughput.server.dsp index 97ee1b6157a..368450fdaef 100644 --- a/cpp/demo/Ice/throughput/Ice.throughput.server.dsp +++ b/cpp/demo/Ice/throughput/Ice.throughput.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.throughput.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.throughput.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.throughput.server - Win32 Debug
+CFG=Ice.throughput.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.throughput.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.throughput.server.mak" CFG="Ice.throughput.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.throughput.server.mak" CFG="Ice.throughput.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.throughput.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.throughput.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.throughput.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.throughput.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.throughput.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.throughput.server - Win32 Release"
+!IF "$(CFG)" == "Ice.throughput.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ice.lib iceutil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 ice.lib iceutil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.throughput.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.throughput.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.throughput.server - Win32 Release"
-# Name "Ice.throughput.server - Win32 Debug"
+# Name "Ice.throughput.server.exe - Win32 Release"
+# Name "Ice.throughput.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\ThroughputI.h SOURCE=.\Throughput.ice
-!IF "$(CFG)" == "Ice.throughput.server - Win32 Release"
+!IF "$(CFG)" == "Ice.throughput.server.exe - Win32 Release"
USERDEP__THROU="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.throughput.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.throughput.server.exe - Win32 Debug"
USERDEP__THROU="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/value/Client.cpp b/cpp/demo/Ice/value/Client.cpp index 39a5683a778..e15a8a30b09 100644 --- a/cpp/demo/Ice/value/Client.cpp +++ b/cpp/demo/Ice/value/Client.cpp @@ -94,7 +94,7 @@ ValueClient::run(int argc, char* argv[]) cin.getline(c, 2); Ice::ObjectFactoryPtr factory = new ObjectFactory; - communicator()->addObjectFactory(factory, "::Demo::Printer"); + communicator()->addObjectFactory(factory, Demo::Printer::ice_staticId()); initial->getPrinter(printer, printerProxy); cout << "==> " << printer->message << endl; @@ -127,7 +127,7 @@ ValueClient::run(int argc, char* argv[]) PrinterPtr derivedAsBase; derivedAsBase = initial->getDerivedPrinter(); cout << "==> The type ID of the received object is \"" << derivedAsBase->ice_id() << "\"" << endl; - assert(derivedAsBase->ice_id() == "::Demo::Printer"); + assert(derivedAsBase->ice_id() == Demo::Printer::ice_staticId()); cout << '\n' << "Now we install a factory for the derived class, and try again.\n" @@ -136,7 +136,7 @@ ValueClient::run(int argc, char* argv[]) << "[press enter]\n"; cin.getline(c, 2); - communicator()->addObjectFactory(factory, "::Demo::DerivedPrinter"); + communicator()->addObjectFactory(factory, Demo::DerivedPrinter::ice_staticId()); derivedAsBase = initial->getDerivedPrinter(); DerivedPrinterPtr derived = DerivedPrinterPtr::dynamicCast(derivedAsBase); diff --git a/cpp/demo/Ice/value/Ice.value.client.dsp b/cpp/demo/Ice/value/Ice.value.client.dsp index c6587d5e4ab..4c3e0199200 100644 --- a/cpp/demo/Ice/value/Ice.value.client.dsp +++ b/cpp/demo/Ice/value/Ice.value.client.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.value.client" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.value.client.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.value.client - Win32 Debug
+CFG=Ice.value.client.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.value.client - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.value.client.mak" CFG="Ice.value.client - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.value.client.mak" CFG="Ice.value.client.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.value.client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.value.client - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.value.client.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.value.client.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.value.client - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.value.client - Win32 Release"
+!IF "$(CFG)" == "Ice.value.client.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"client.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.value.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.value.client.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.value.client - Win32 Release"
-# Name "Ice.value.client - Win32 Debug"
+# Name "Ice.value.client.exe - Win32 Release"
+# Name "Ice.value.client.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -129,7 +129,7 @@ SOURCE=.\ValueI.h SOURCE=.\Value.ice
-!IF "$(CFG)" == "Ice.value.client - Win32 Release"
+!IF "$(CFG)" == "Ice.value.client.exe - Win32 Release"
USERDEP__VALUE="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -145,7 +145,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.value.client - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.value.client.exe - Win32 Debug"
USERDEP__VALUE="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/value/Ice.value.server.dsp b/cpp/demo/Ice/value/Ice.value.server.dsp index 5a76579f5b5..1699328eeda 100644 --- a/cpp/demo/Ice/value/Ice.value.server.dsp +++ b/cpp/demo/Ice/value/Ice.value.server.dsp @@ -1,10 +1,10 @@ -# Microsoft Developer Studio Project File - Name="Ice.value.server" - Package Owner=<4>
+# Microsoft Developer Studio Project File - Name="Ice.value.server.exe" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
-CFG=Ice.value.server - Win32 Debug
+CFG=Ice.value.server.exe - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
@@ -13,12 +13,12 @@ CFG=Ice.value.server - Win32 Debug !MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
-!MESSAGE NMAKE /f "Ice.value.server.mak" CFG="Ice.value.server - Win32 Debug"
+!MESSAGE NMAKE /f "Ice.value.server.mak" CFG="Ice.value.server.exe - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
-!MESSAGE "Ice.value.server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Ice.value.server - Win32 Debug" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.value.server.exe - Win32 Release" (based on "Win32 (x86) Console Application")
+!MESSAGE "Ice.value.server.exe - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
@@ -28,7 +28,7 @@ CFG=Ice.value.server - Win32 Debug CPP=cl.exe
RSC=rc.exe
-!IF "$(CFG)" == "Ice.value.server - Win32 Release"
+!IF "$(CFG)" == "Ice.value.server.exe - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
@@ -51,10 +51,10 @@ BSC32=bscmake.exe # ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no
+# ADD LINK32 Ice.lib IceUtil.lib setargv.obj /nologo /subsystem:console /pdb:none /machine:I386 /out:"server.exe" /libpath:"../../../lib" /FIXED:no /IGNORE:4089
# SUBTRACT LINK32 /debug /nodefaultlib
-!ELSEIF "$(CFG)" == "Ice.value.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.value.server.exe - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
@@ -84,8 +84,8 @@ LINK32=link.exe # Begin Target
-# Name "Ice.value.server - Win32 Release"
-# Name "Ice.value.server - Win32 Debug"
+# Name "Ice.value.server.exe - Win32 Release"
+# Name "Ice.value.server.exe - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
@@ -121,7 +121,7 @@ SOURCE=.\ValueI.h SOURCE=.\Value.ice
-!IF "$(CFG)" == "Ice.value.server - Win32 Release"
+!IF "$(CFG)" == "Ice.value.server.exe - Win32 Release"
USERDEP__VALUE="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\slice.lib"
# Begin Custom Build
@@ -137,7 +137,7 @@ BuildCmds= \ $(BuildCmds)
# End Custom Build
-!ELSEIF "$(CFG)" == "Ice.value.server - Win32 Debug"
+!ELSEIF "$(CFG)" == "Ice.value.server.exe - Win32 Debug"
USERDEP__VALUE="..\..\..\bin\slice2cpp.exe" "..\..\..\lib\sliced.lib"
# Begin Custom Build
diff --git a/cpp/demo/Ice/value/ObjectFactory.cpp b/cpp/demo/Ice/value/ObjectFactory.cpp index 6f694ae6906..bfd16f57e89 100644 --- a/cpp/demo/Ice/value/ObjectFactory.cpp +++ b/cpp/demo/Ice/value/ObjectFactory.cpp @@ -16,12 +16,12 @@ using namespace std; Ice::ObjectPtr ObjectFactory::create(const string& type) { - if(type == "::Demo::Printer") + if(type == Demo::Printer::ice_staticId()) { return new PrinterI; } - if(type == "::Demo::DerivedPrinter") + if(type == Demo::DerivedPrinter::ice_staticId()) { return new DerivedPrinterI; } |