summaryrefslogtreecommitdiff
path: root/TAO/examples/mfc
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
commit6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch)
treeda50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/examples/mfc
parent0e555b9150d38e3b3473ba325b56db2642e6352b (diff)
downloadATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz
Repo restructuring
Diffstat (limited to 'TAO/examples/mfc')
-rw-r--r--TAO/examples/mfc/MainFrm.cpp109
-rw-r--r--TAO/examples/mfc/MainFrm.h60
-rw-r--r--TAO/examples/mfc/Makefile.am81
-rw-r--r--TAO/examples/mfc/README66
-rw-r--r--TAO/examples/mfc/Resource.h21
-rw-r--r--TAO/examples/mfc/StdAfx.cpp10
-rw-r--r--TAO/examples/mfc/StdAfx.h40
-rw-r--r--TAO/examples/mfc/client.cpp70
-rw-r--r--TAO/examples/mfc/client.mpc14
-rw-r--r--TAO/examples/mfc/res/Toolbar.bmpbin1078 -> 0 bytes
-rw-r--r--TAO/examples/mfc/res/server.icobin1078 -> 0 bytes
-rw-r--r--TAO/examples/mfc/res/server.rc213
-rw-r--r--TAO/examples/mfc/res/serverDoc.icobin1078 -> 0 bytes
-rw-r--r--TAO/examples/mfc/server.apsbin32156 -> 0 bytes
-rw-r--r--TAO/examples/mfc/server.clw117
-rw-r--r--TAO/examples/mfc/server.cpp267
-rw-r--r--TAO/examples/mfc/server.h53
-rw-r--r--TAO/examples/mfc/server.mpc29
-rw-r--r--TAO/examples/mfc/server.rc363
-rw-r--r--TAO/examples/mfc/serverDoc.cpp86
-rw-r--r--TAO/examples/mfc/serverDoc.h59
-rw-r--r--TAO/examples/mfc/serverView.cpp106
-rw-r--r--TAO/examples/mfc/serverView.h69
-rw-r--r--TAO/examples/mfc/w32_test.idl10
-rw-r--r--TAO/examples/mfc/w32_test_impl.cpp36
-rw-r--r--TAO/examples/mfc/w32_test_impl.h21
26 files changed, 0 insertions, 1700 deletions
diff --git a/TAO/examples/mfc/MainFrm.cpp b/TAO/examples/mfc/MainFrm.cpp
deleted file mode 100644
index 6421ce41225..00000000000
--- a/TAO/examples/mfc/MainFrm.cpp
+++ /dev/null
@@ -1,109 +0,0 @@
-// $Id$
-
-// MainFrm.cpp : implementation of the CMainFrame class
-//
-
-#include "stdafx.h"
-#include "server.h"
-
-#include "MainFrm.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CMainFrame
-
-IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
-
-BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
- //{{AFX_MSG_MAP(CMainFrame)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code !
- ON_WM_CREATE()
- //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-static UINT indicators[] =
-{
- ID_SEPARATOR, // status line indicator
- ID_INDICATOR_CAPS,
- ID_INDICATOR_NUM,
- ID_INDICATOR_SCRL,
-};
-
-/////////////////////////////////////////////////////////////////////////////
-// CMainFrame construction/destruction
-
-CMainFrame::CMainFrame()
-{
- // TODO: add member initialization code here
-
-}
-
-CMainFrame::~CMainFrame()
-{
-}
-
-int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
-{
- if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
- return -1;
-
- if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
- | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
- !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
- {
- TRACE0("Failed to create toolbar\n");
- return -1; // fail to create
- }
-
- if (!m_wndStatusBar.Create(this) ||
- !m_wndStatusBar.SetIndicators(indicators,
- sizeof(indicators)/sizeof(UINT)))
- {
- TRACE0("Failed to create status bar\n");
- return -1; // fail to create
- }
-
- // TODO: Delete these three lines if you don't want the toolbar to
- // be dockable
- m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
- EnableDocking(CBRS_ALIGN_ANY);
- DockControlBar(&m_wndToolBar);
-
- return 0;
-}
-
-BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
-{
- if( !CFrameWnd::PreCreateWindow(cs) )
- return FALSE;
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
-
- return TRUE;
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CMainFrame diagnostics
-
-#ifdef _DEBUG
-void CMainFrame::AssertValid() const
-{
- CFrameWnd::AssertValid();
-}
-
-void CMainFrame::Dump(CDumpContext& dc) const
-{
- CFrameWnd::Dump(dc);
-}
-
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CMainFrame message handlers
-
diff --git a/TAO/examples/mfc/MainFrm.h b/TAO/examples/mfc/MainFrm.h
deleted file mode 100644
index 033dfb0f5d1..00000000000
--- a/TAO/examples/mfc/MainFrm.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// $Id$
-
-// MainFrm.h : interface of the CMainFrame class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_MAINFRM_H__7B1C2A4A_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
-#define AFX_MAINFRM_H__7B1C2A4A_7230_11D3_B94A_0010A4052E2A__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-class CMainFrame : public CFrameWnd
-{
-
-protected: // create from serialization only
- CMainFrame();
- DECLARE_DYNCREATE(CMainFrame)
-
-// Attributes
-public:
-
-// Operations
-public:
-
-// Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
-
-// Implementation
-public:
- virtual ~CMainFrame();
-#ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected: // control bar embedded members
- CStatusBar m_wndStatusBar;
- CToolBar m_wndToolBar;
-
-// Generated message map functions
-protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_MAINFRM_H__7B1C2A4A_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
diff --git a/TAO/examples/mfc/Makefile.am b/TAO/examples/mfc/Makefile.am
deleted file mode 100644
index 8de3c02a69d..00000000000
--- a/TAO/examples/mfc/Makefile.am
+++ /dev/null
@@ -1,81 +0,0 @@
-## Process this file with automake to create Makefile.in
-##
-## $Id$
-##
-## This file was generated by MPC. Any changes made directly to
-## this file will be lost the next time it is generated.
-##
-## MPC Command:
-## ../bin/mwc.pl -type automake -noreldefs TAO.mwc
-
-ACE_BUILDDIR = $(top_builddir)/..
-ACE_ROOT = $(top_srcdir)/..
-TAO_BUILDDIR = $(top_builddir)
-TAO_IDL = ACE_ROOT=$(ACE_ROOT) TAO_ROOT=$(TAO_ROOT) $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDL_DEP = $(TAO_BUILDDIR)/TAO_IDL/tao_idl
-TAO_IDLFLAGS = -Ge 1 -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I$(TAO_ROOT) -I$(srcdir) -g $(ACE_BUILDDIR)/apps/gperf/src/gperf
-TAO_ROOT = $(top_srcdir)
-
-## Makefile.MFC_client.am
-
-BUILT_SOURCES = \
- w32_testC.cpp \
- w32_testC.h \
- w32_testC.inl \
- w32_testS.h \
- w32_testS.inl \
- w32_testS_T.cpp \
- w32_testS_T.h \
- w32_testS_T.inl
-
-CLEANFILES = \
- w32_test-stamp \
- w32_testC.cpp \
- w32_testC.h \
- w32_testC.inl \
- w32_testS.h \
- w32_testS.inl \
- w32_testS_T.cpp \
- w32_testS_T.h \
- w32_testS_T.inl
-
-w32_testC.cpp w32_testC.h w32_testC.inl w32_testS.h w32_testS.inl w32_testS_T.cpp w32_testS_T.h w32_testS_T.inl: w32_test-stamp
-
-w32_test-stamp: $(srcdir)/w32_test.idl $(TAO_IDL_DEP)
- $(TAO_IDL) $(TAO_IDLFLAGS) -I$(TAO_ROOT)/orbsvcs -GT -Wb,pch_include=StdAfx.h $(srcdir)/w32_test.idl
- @touch $@
-
-noinst_PROGRAMS = client
-
-client_CPPFLAGS = \
- -I$(ACE_ROOT) \
- -I$(ACE_BUILDDIR) \
- -I$(TAO_ROOT) \
- -I$(TAO_BUILDDIR) \
- -I$(TAO_ROOT)/orbsvcs \
- -I$(TAO_BUILDDIR)/orbsvcs
-
-client_SOURCES = \
- client.cpp \
- w32_testC.cpp \
- w32_testC.h \
- w32_testC.inl \
- w32_testS.h \
- w32_testS.inl \
- w32_testS_T.h \
- w32_testS_T.inl
-
-client_LDADD = \
- $(TAO_BUILDDIR)/tao/libTAO_PortableServer.la \
- $(TAO_BUILDDIR)/orbsvcs/orbsvcs/libTAO_CosNaming.la \
- $(TAO_BUILDDIR)/tao/libTAO_AnyTypeCode.la \
- $(TAO_BUILDDIR)/tao/libTAO.la \
- $(ACE_BUILDDIR)/ace/libACE.la
-
-## Clean up template repositories, etc.
-clean-local:
- -rm -f *~ *.bak *.rpo *.sym lib*.*_pure_* core core.*
- -rm -f gcctemp.c gcctemp so_locations *.ics
- -rm -rf cxx_repository ptrepository ti_files
- -rm -rf templateregistry ir.out
- -rm -rf ptrepository SunWS_cache Templates.DB
diff --git a/TAO/examples/mfc/README b/TAO/examples/mfc/README
deleted file mode 100644
index 73dd767c5d4..00000000000
--- a/TAO/examples/mfc/README
+++ /dev/null
@@ -1,66 +0,0 @@
-This is an short example to show how to integrate TAO and MFC base GUI
-applications. The server is an MFC-based GUI application, which
-spawns an additional thread to invoke the ORBs event queue. The
-client is a Win32 console application.
-
-The following are the steps used to integrate a Win32-GUI application
-and TAO by adding an additional thread for the ORB:
-
-Step 1: Creating a MFC-Application wizard-based project
-
-Step 2: Set the following project settings
-
- - C++ Settings / Preprocessor
-
- ACE_HAS_DLL=1, ACE_HAS_MFC=1
-
- - Use the MFC-based librarys of ACE & TAO
-
- e.g. link acemfcd.lib TAOmfcd.lib for the Debug-version!
-
-Step 3: Add a threadfunction for the ORB
-
- The ORB has to be started in a separat thread. So introduce a
- threadfunction to spawn a separate thread by
- e.g. ACE-Thread-Manager. In this function you implement all
- the necessary stuff to start an ORB!
-
-Step 4: Add the thread invocation in the Application
-
- - Initialize ACE
-
- - Spawn the thread for the ORB
-
- At first you have to initialize ACE by calling
-
- ACE::init()
-
- as soon as possible in your application. Good places are in
- the constructor or in the InitInstance() memberfunction of the
- application-calls. In addition you have to spawn the thread
- to run the ORB, e.g. ACE_Thread_Manager::instance()->spawn
- (spawn_my_orb_thread);
-
-Step 5: Overwrite the default destructor of the Application-Class
-
- - Get a reference to the ORB use in the thread
-
- - Shut down the ORB
-
- - Wait for the shutdown of the ORB-thread
-
- - Call ACE::fini() to close the ACE::init()-call
-
- To shut down the ORB in it's separate thread you need to call
- the ORB::shutdown() method of the ORB references in the
- thread. To get an reference to this special ORB create an
- additional CORBA::ORB_var and initialize it the the same
- ORB-name than you initialized the ORB in the thread. So you
- get a reference to the same ORB.
-
-Have fun,
-
- Martin Botzler <martin.botzler@mchp.siemens.de>
-
-
-
diff --git a/TAO/examples/mfc/Resource.h b/TAO/examples/mfc/Resource.h
deleted file mode 100644
index 2556de6ab5f..00000000000
--- a/TAO/examples/mfc/Resource.h
+++ /dev/null
@@ -1,21 +0,0 @@
-// $Id$
-
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by SERVER.RC
-//
-#define IDD_ABOUTBOX 100
-#define IDR_MAINFRAME 128
-#define IDR_SERVERTYPE 129
-
-// Next default values for new objects
-//
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_3D_CONTROLS 1
-#define _APS_NEXT_RESOURCE_VALUE 130
-#define _APS_NEXT_CONTROL_VALUE 1000
-#define _APS_NEXT_SYMED_VALUE 101
-#define _APS_NEXT_COMMAND_VALUE 32771
-#endif
-#endif
diff --git a/TAO/examples/mfc/StdAfx.cpp b/TAO/examples/mfc/StdAfx.cpp
deleted file mode 100644
index 3578a2f3da3..00000000000
--- a/TAO/examples/mfc/StdAfx.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-// $Id$
-
-// stdafx.cpp : source file that includes just the standard includes
-// server.pch will be the pre-compiled header
-// stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
-
-
diff --git a/TAO/examples/mfc/StdAfx.h b/TAO/examples/mfc/StdAfx.h
deleted file mode 100644
index 1b29181d99d..00000000000
--- a/TAO/examples/mfc/StdAfx.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// $Id$
-
-// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
-
-#if !defined(AFX_STDAFX_H__7B1C2A48_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
-#define AFX_STDAFX_H__7B1C2A48_7230_11D3_B94A_0010A4052E2A__INCLUDED_
-
-#ifdef USING_PCH
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-// We must include at least one ACE/TAO header before the MFC/Windows headers
-// because of the way windows.h is included. So this must go before the MFC
-// headers.
-
-#include "tao/corba.h"
-#include "ace/Thread_Manager.h"
-
-#if defined (ACE_WIN32)
-#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h> // MFC core and standard components
-#include <afxext.h> // MFC extensions
-#include <afxdisp.h> // MFC Automation classes
-#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h> // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-#endif // ACE_WIN32
-#endif // USING_PCH
-#endif // !defined(AFX_STDAFX_H__7B1C2A48_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
diff --git a/TAO/examples/mfc/client.cpp b/TAO/examples/mfc/client.cpp
deleted file mode 100644
index bc4b918404d..00000000000
--- a/TAO/examples/mfc/client.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-// $Id$
-
-#include "w32_testS.h"
-#include "ace/streams.h"
-
-
-int
-main (int argc, char *argv[])
-{
- ACE_TRY_NEW_ENV
- {
- const char *orb_name = "";
-
- ACE_DEBUG ((LM_DEBUG,
- "Initializing the ORB!\n"));
- CORBA::ORB_var the_orb = CORBA::ORB_init (argc,
- argv,
- orb_name
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var orb_obj =
- the_orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var the_root_poa =
- PortableServer::POA::_narrow (orb_obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var the_poa_manager =
- the_root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Retrieving the servants IOR from a file
- ACE_DEBUG ((LM_DEBUG,
- "Reading the IOR!\n"));
-
- const char *filename =
- "file://ior.txt";
-
- orb_obj =
- the_orb->string_to_object (filename ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Narrowing the IOR!\n"));
-
- W32_Test_Interface_var mycall =
- W32_Test_Interface::_narrow (orb_obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_DEBUG ((LM_DEBUG,
- "Sending the Request!\n"));
- char *response = mycall->getresponse (1);
- ACE_DEBUG ((LM_DEBUG,
- "The answer ...%s\n", response));
-
- // Free up the string.
- CORBA::string_free (response);
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- return 1;
- }
- ACE_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/examples/mfc/client.mpc b/TAO/examples/mfc/client.mpc
deleted file mode 100644
index 1769261ac85..00000000000
--- a/TAO/examples/mfc/client.mpc
+++ /dev/null
@@ -1,14 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(MFC client): namingexe, portableserver {
- idlflags += -Wb,pch_include=StdAfx.h
-
- Source_Files {
- w32_testC.cpp
- client.cpp
- }
-
- Resource_Files {
- }
-}
diff --git a/TAO/examples/mfc/res/Toolbar.bmp b/TAO/examples/mfc/res/Toolbar.bmp
deleted file mode 100644
index d501723c1ce..00000000000
--- a/TAO/examples/mfc/res/Toolbar.bmp
+++ /dev/null
Binary files differ
diff --git a/TAO/examples/mfc/res/server.ico b/TAO/examples/mfc/res/server.ico
deleted file mode 100644
index 7eef0bcbe65..00000000000
--- a/TAO/examples/mfc/res/server.ico
+++ /dev/null
Binary files differ
diff --git a/TAO/examples/mfc/res/server.rc2 b/TAO/examples/mfc/res/server.rc2
deleted file mode 100644
index 72730690181..00000000000
--- a/TAO/examples/mfc/res/server.rc2
+++ /dev/null
@@ -1,13 +0,0 @@
-//
-// SERVER.RC2 - resources Microsoft Visual C++ does not edit directly
-//
-
-#ifdef APSTUDIO_INVOKED
- #error this file is not editable by Microsoft Visual C++
-#endif //APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-// Add manually edited resources here...
-
-/////////////////////////////////////////////////////////////////////////////
diff --git a/TAO/examples/mfc/res/serverDoc.ico b/TAO/examples/mfc/res/serverDoc.ico
deleted file mode 100644
index db6573ce15b..00000000000
--- a/TAO/examples/mfc/res/serverDoc.ico
+++ /dev/null
Binary files differ
diff --git a/TAO/examples/mfc/server.aps b/TAO/examples/mfc/server.aps
deleted file mode 100644
index 9fd537b0e9b..00000000000
--- a/TAO/examples/mfc/server.aps
+++ /dev/null
Binary files differ
diff --git a/TAO/examples/mfc/server.clw b/TAO/examples/mfc/server.clw
deleted file mode 100644
index f984d523c6e..00000000000
--- a/TAO/examples/mfc/server.clw
+++ /dev/null
@@ -1,117 +0,0 @@
-; CLW file contains information for the MFC ClassWizard
-
-[General Info]
-Version=1
-LastClass=CAboutDlg
-LastTemplate=CDialog
-NewFileInclude1=#include "stdafx.h"
-NewFileInclude2=#include "server.h"
-LastPage=0
-
-ClassCount=9
-Class1=CServerApp
-Class2=CServerDoc
-Class3=CServerView
-Class4=CMainFrame
-Class9=CAboutDlg
-
-ResourceCount=2
-Resource1=IDR_MAINFRAME
-Resource2=IDD_ABOUTBOX
-
-[CLS:CServerApp]
-Type=0
-HeaderFile=server.h
-ImplementationFile=server.cpp
-Filter=N
-
-[CLS:CServerDoc]
-Type=0
-HeaderFile=serverDoc.h
-ImplementationFile=serverDoc.cpp
-Filter=N
-
-[CLS:CServerView]
-Type=0
-HeaderFile=serverView.h
-ImplementationFile=serverView.cpp
-Filter=C
-
-
-[CLS:CMainFrame]
-Type=0
-HeaderFile=MainFrm.h
-ImplementationFile=MainFrm.cpp
-Filter=T
-
-
-
-
-[CLS:CAboutDlg]
-Type=0
-HeaderFile=server.cpp
-ImplementationFile=server.cpp
-Filter=D
-
-[DLG:IDD_ABOUTBOX]
-Type=1
-Class=CAboutDlg
-ControlCount=4
-Control1=IDC_STATIC,static,1342177283
-Control2=IDC_STATIC,static,1342308480
-Control3=IDC_STATIC,static,1342308352
-Control4=IDOK,button,1342373889
-
-[MNU:IDR_MAINFRAME]
-Type=1
-Class=CMainFrame
-Command1=ID_FILE_NEW
-Command2=ID_FILE_OPEN
-Command3=ID_FILE_SAVE
-Command4=ID_FILE_SAVE_AS
-Command5=ID_FILE_PRINT
-Command6=ID_FILE_PRINT_PREVIEW
-Command7=ID_FILE_PRINT_SETUP
-Command8=ID_FILE_MRU_FILE1
-Command9=ID_APP_EXIT
-Command10=ID_EDIT_UNDO
-Command11=ID_EDIT_CUT
-Command12=ID_EDIT_COPY
-Command13=ID_EDIT_PASTE
-Command14=ID_VIEW_TOOLBAR
-Command15=ID_VIEW_STATUS_BAR
-Command16=ID_APP_ABOUT
-CommandCount=16
-
-[ACL:IDR_MAINFRAME]
-Type=1
-Class=CMainFrame
-Command1=ID_FILE_NEW
-Command2=ID_FILE_OPEN
-Command3=ID_FILE_SAVE
-Command4=ID_FILE_PRINT
-Command5=ID_EDIT_UNDO
-Command6=ID_EDIT_CUT
-Command7=ID_EDIT_COPY
-Command8=ID_EDIT_PASTE
-Command9=ID_EDIT_UNDO
-Command10=ID_EDIT_CUT
-Command11=ID_EDIT_COPY
-Command12=ID_EDIT_PASTE
-Command13=ID_NEXT_PANE
-Command14=ID_PREV_PANE
-CommandCount=14
-
-[TB:IDR_MAINFRAME]
-Type=1
-Class=?
-Command1=ID_FILE_NEW
-Command2=ID_FILE_OPEN
-Command3=ID_FILE_SAVE
-Command4=ID_EDIT_CUT
-Command5=ID_EDIT_COPY
-Command6=ID_EDIT_PASTE
-Command7=ID_FILE_PRINT
-Command8=ID_APP_ABOUT
-CommandCount=8
-
diff --git a/TAO/examples/mfc/server.cpp b/TAO/examples/mfc/server.cpp
deleted file mode 100644
index 4dfd59a00d0..00000000000
--- a/TAO/examples/mfc/server.cpp
+++ /dev/null
@@ -1,267 +0,0 @@
-// $Id$
-
-// server.cpp : Defines the class behaviors for the application.
-
-#include "stdafx.h"
-#include "server.h"
-
-// Demospecific includes
-#include "w32_test_impl.h"
-// Demospecific includes end!
-
-#include "MainFrm.h"
-#include "serverDoc.h"
-#include "serverView.h"
-
-#include "ace/ACE.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerApp
-
-BEGIN_MESSAGE_MAP(CServerApp, CWinApp)
- //{{AFX_MSG_MAP(CServerApp)
- ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- // Standard file based document commands
- ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
- ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
- // Standard print setup command
- ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)
-END_MESSAGE_MAP()
-
-
-// Thread-Function!
-static unsigned long
-spawn_my_orb_thread (void *)
-{
- ACE_TRY_NEW_ENV
- {
- // Initialization arguments for the ORB
- const char *orb_name = "";
-
- CORBA::ORB_var the_orb =
- CORBA::ORB_init (__argc,
- __argv,
- orb_name
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- CORBA::Object_var orb_obj =
- the_orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POA_var the_root_poa =
- PortableServer::POA::_narrow (orb_obj.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- PortableServer::POAManager_var the_poa_manager =
- the_root_poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- the_poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- // Initializing the NamingService
- W32_Test_Impl myservant;
- W32_Test_Interface_var orb_servant =
- myservant._this (ACE_TRY_CHECK);
- ACE_TRY_CHECK;
-
- CORBA::String_var ior =
- the_orb->object_to_string (orb_servant.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- FILE *output_file = ACE_OS::fopen ("ior.txt",
- "w");
- ACE_OS::fprintf (output_file,
- "%s",
- ior.in ());
- ACE_OS::fclose (output_file);
-
- the_orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- return 0;
- }
- ACE_ENDTRY;
- ACE_CHECK_RETURN (0);
-
- return 0;
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerApp construction
-
-CServerApp::CServerApp()
-{
- // TODO: add construction code here,
- // Place all significant initialization in InitInstance
-}
-
-
-CServerApp::~CServerApp()
-{
- ACE_TRY_NEW_ENV
- {
- CORBA::ORB_var the_shutdown_orb;
-
- int argc = 0;
- char **argv = 0;
- const char *orb_name = "";
-
- // Retrieving a reference to the ORB used inside the thread
- the_shutdown_orb =
- CORBA::ORB_init (argc,
- argv,
- orb_name
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- the_shutdown_orb->shutdown (0 // wait_for_completion
- ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
-
- ACE_Thread_Manager::instance ()->wait ();
- }
- ACE_CATCHANY
- {
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
- }
- ACE_ENDTRY;
- ACE_CHECK;
-
-
- ACE::fini ();
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// The one and only CServerApp object
-
-CServerApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerApp initialization
-
-BOOL CServerApp::InitInstance()
-{
- ACE::init();
-
- AfxEnableControlContainer();
-
- // Standard initialization
- // If you are not using these features and wish to reduce the size
- // of your final executable, you should remove from the following
- // the specific initialization routines you do not need.
-
-#ifdef _AFXDLL
- Enable3dControls(); // Call this when using MFC in a shared DLL
-#else
- Enable3dControlsStatic(); // Call this when linking to MFC statically
-#endif
-
- // Change the registry key under which our settings are stored.
- // TODO: You should modify this string to be something appropriate
- // such as the name of your company or organization.
- SetRegistryKey(_T("Local AppWizard-Generated Applications"));
-
- LoadStdProfileSettings(); // Load standard INI file options (including MRU)
-
- // Register the application's document templates. Document templates
- // serve as the connection between documents, frame windows and views.
-
- CSingleDocTemplate* pDocTemplate;
- pDocTemplate = new CSingleDocTemplate(
- IDR_MAINFRAME,
- RUNTIME_CLASS(CServerDoc),
- RUNTIME_CLASS(CMainFrame), // main SDI frame window
- RUNTIME_CLASS(CServerView));
- AddDocTemplate(pDocTemplate);
-
- // Parse command line for standard shell commands, DDE, file open
- CCommandLineInfo cmdInfo;
- ParseCommandLine(cmdInfo);
-
- // Dispatch commands specified on the command line
- if (!ProcessShellCommand(cmdInfo))
- return FALSE;
-
- // The one and only window has been initialized, so show and update it.
- m_pMainWnd->ShowWindow(SW_SHOW);
- m_pMainWnd->UpdateWindow();
-
- ACE_Thread_Manager::instance()->spawn (spawn_my_orb_thread);
-
- return TRUE;
-}
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CAboutDlg dialog used for App About
-
-class CAboutDlg : public CDialog
-{
-public:
- CAboutDlg();
-
-// Dialog Data
- //{{AFX_DATA(CAboutDlg)
- enum { IDD = IDD_ABOUTBOX };
- //}}AFX_DATA
-
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CAboutDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
-
-// Implementation
-protected:
- //{{AFX_MSG(CAboutDlg)
- // No message handlers
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-};
-
-CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
-{
- //{{AFX_DATA_INIT(CAboutDlg)
- //}}AFX_DATA_INIT
-}
-
-void CAboutDlg::DoDataExchange(CDataExchange* pDX)
-{
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CAboutDlg)
- //}}AFX_DATA_MAP
-}
-
-BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
- //{{AFX_MSG_MAP(CAboutDlg)
- // No message handlers
- //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-// App command to run the dialog
-void CServerApp::OnAppAbout()
-{
- CAboutDlg aboutDlg;
- aboutDlg.DoModal();
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerApp message handlers
-
diff --git a/TAO/examples/mfc/server.h b/TAO/examples/mfc/server.h
deleted file mode 100644
index 2d762fbfb95..00000000000
--- a/TAO/examples/mfc/server.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// $Id$
-
-// server.h : main header file for the SERVER application
-//
-
-#if !defined(AFX_SERVER_H__7B1C2A46_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
-#define AFX_SERVER_H__7B1C2A46_7230_11D3_B94A_0010A4052E2A__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
-#endif
-
-#include "resource.h" // main symbols
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerApp:
-// See server.cpp for the implementation of this class
-//
-
-class CServerApp : public CWinApp
-{
-public:
- CServerApp();
-
- ~CServerApp();
-
-// Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CServerApp)
- public:
- virtual BOOL InitInstance();
- //}}AFX_VIRTUAL
-
-// Implementation
- //{{AFX_MSG(CServerApp)
- afx_msg void OnAppAbout();
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-};
-
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_SERVER_H__7B1C2A46_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
diff --git a/TAO/examples/mfc/server.mpc b/TAO/examples/mfc/server.mpc
deleted file mode 100644
index 9b8ccc137f2..00000000000
--- a/TAO/examples/mfc/server.mpc
+++ /dev/null
@@ -1,29 +0,0 @@
-// -*- MPC -*-
-// $Id$
-
-project(MFC Server): namingexe, portableserver, ace_mfc {
- exename = server
- pch_header = StdAfx.h
- pch_source = StdAfx.cpp
- idlflags += -Wb,pch_include=StdAfx.h
-
- Source_Files {
- MainFrm.cpp
- server.cpp
- serverDoc.cpp
- serverView.cpp
- w32_test_impl.cpp
- }
-
- Header_Files {
- Resource.h
- }
-
- Resource_Files {
- server.rc
- res/server.ico
- res/server.rc2
- res/serverDoc.ico
- res/Toolbar.bmp
- }
-}
diff --git a/TAO/examples/mfc/server.rc b/TAO/examples/mfc/server.rc
deleted file mode 100644
index 42728dded7f..00000000000
--- a/TAO/examples/mfc/server.rc
+++ /dev/null
@@ -1,363 +0,0 @@
-//Microsoft Visual C++ generated resource script.
-//
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-
-#include "afxres.h"
-
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-#ifdef APSTUDIO_INVOKED
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE DISCARDABLE
-BEGIN
- "resource.h\0"
-END
-
-2 TEXTINCLUDE DISCARDABLE
-BEGIN
- "#include ""afxres.h""\r\n"
- "\0"
-END
-
-3 TEXTINCLUDE DISCARDABLE
-BEGIN
- "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
- "#define _AFX_NO_OLE_RESOURCES\r\n"
- "#define _AFX_NO_TRACKER_RESOURCES\r\n"
- "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
- "\r\n"
- "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)\r\n"
- "#ifdef _WIN32\r\n"
- "LANGUAGE 7, 1\r\n"
- "#pragma code_page(1252)\r\n"
- "#endif //_WIN32\r\n"
- "#include ""res\\server.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
- "#include ""l.deu\\afxres.rc"" // Standard components\r\n"
- "#include ""l.deu\\afxprint.rc"" // printing/print preview resources\r\n"
- "#endif\r\n"
- "\0"
-END
-
-#endif // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Icon
-//
-
-// Icon with lowest ID value placed first to ensure application icon
-// remains consistent on all systems.
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
-#ifdef _WIN32
-LANGUAGE 7, 1
-#pragma code_page(1252)
-#endif //_WIN32
-IDR_MAINFRAME ICON DISCARDABLE "res\\server.ico"
-IDR_SERVERTYPE ICON DISCARDABLE "res\\serverDoc.ico"
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Bitmap
-//
-
-IDR_MAINFRAME BITMAP MOVEABLE PURE "res\\Toolbar.bmp"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Toolbar
-//
-
-IDR_MAINFRAME TOOLBAR DISCARDABLE 16, 15
-BEGIN
- BUTTON ID_FILE_NEW
- BUTTON ID_FILE_OPEN
- BUTTON ID_FILE_SAVE
- SEPARATOR
- BUTTON ID_EDIT_CUT
- BUTTON ID_EDIT_COPY
- BUTTON ID_EDIT_PASTE
- SEPARATOR
- BUTTON ID_FILE_PRINT
- SEPARATOR
- BUTTON ID_APP_ABOUT
-END
-
-
-
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
-#ifdef _WIN32
-LANGUAGE 7, 1
-#pragma code_page(1252)
-#endif //_WIN32
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_MAINFRAME MENU PRELOAD DISCARDABLE
-BEGIN
- POPUP "&Datei"
- BEGIN
- MENUITEM "&Neu\tStrg+N", ID_FILE_NEW
- MENUITEM "Ö&ffnen...\tStrg+O", ID_FILE_OPEN
- MENUITEM "S&peichern\tStrg+S", ID_FILE_SAVE
- MENUITEM "Speichern &unter...", ID_FILE_SAVE_AS
- MENUITEM SEPARATOR
- MENUITEM "&Drucken...\tStrg+P", ID_FILE_PRINT
- MENUITEM "Sei&tenansicht", ID_FILE_PRINT_PREVIEW
- MENUITEM "Drucker&einrichtung...", ID_FILE_PRINT_SETUP
- MENUITEM SEPARATOR
- MENUITEM "Letzte Datei", ID_FILE_MRU_FILE1,GRAYED
- MENUITEM SEPARATOR
- MENUITEM "&Beenden", ID_APP_EXIT
- END
- POPUP "&Bearbeiten"
- BEGIN
- MENUITEM "&Rückgängig\tStrg+Z", ID_EDIT_UNDO
- MENUITEM SEPARATOR
- MENUITEM "&Ausschneiden\tStrg+X", ID_EDIT_CUT
- MENUITEM "&Kopieren\tStrg+C", ID_EDIT_COPY
- MENUITEM "E&infügen\tStrg+V", ID_EDIT_PASTE
- END
- POPUP "&Ansicht"
- BEGIN
- MENUITEM "&Symbolleiste", ID_VIEW_TOOLBAR
- MENUITEM "S&tatusleiste", ID_VIEW_STATUS_BAR
- END
- POPUP "&?"
- BEGIN
- MENUITEM "Inf&o über server...", ID_APP_ABOUT
- END
-END
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Accelerator
-//
-
-IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE
-BEGIN
- "N", ID_FILE_NEW, VIRTKEY,CONTROL
- "O", ID_FILE_OPEN, VIRTKEY,CONTROL
- "S", ID_FILE_SAVE, VIRTKEY,CONTROL
- "P", ID_FILE_PRINT, VIRTKEY,CONTROL
- "Z", ID_EDIT_UNDO, VIRTKEY,CONTROL
- "X", ID_EDIT_CUT, VIRTKEY,CONTROL
- "C", ID_EDIT_COPY, VIRTKEY,CONTROL
- "V", ID_EDIT_PASTE, VIRTKEY,CONTROL
- VK_BACK, ID_EDIT_UNDO, VIRTKEY,ALT
- VK_DELETE, ID_EDIT_CUT, VIRTKEY,SHIFT
- VK_INSERT, ID_EDIT_COPY, VIRTKEY,CONTROL
- VK_INSERT, ID_EDIT_PASTE, VIRTKEY,SHIFT
- VK_F6, ID_NEXT_PANE, VIRTKEY
- VK_F6, ID_PREV_PANE, VIRTKEY,SHIFT
-END
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 235, 55
-CAPTION "Info über server"
-STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-FONT 8, "MS Sans Serif"
-BEGIN
- ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
- LTEXT "server Version 1.0",IDC_STATIC,40,10,119,8,
- SS_NOPREFIX
- LTEXT "Copyright (C) 1999",IDC_STATIC,40,25,119,8
- DEFPUSHBUTTON "OK",IDOK,178,7,50,14,WS_GROUP
-END
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040704B0"
- BEGIN
- VALUE "CompanyName", "\0"
- VALUE "FileDescription", "MFC-Anwendung server\0"
- VALUE "FileVersion", "1, 0, 0, 1\0"
- VALUE "InternalName", "server\0"
- VALUE "LegalCopyright", "Copyright (C) 1999\0"
- VALUE "LegalTrademarks", "\0"
- VALUE "OriginalFilename","server.EXE\0"
- VALUE "ProductName", "Anwendung server\0"
- VALUE "ProductVersion", "1, 0, 0, 1\0"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x407, 1200
- END
-END
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DESIGNINFO
-//
-
-#ifdef APSTUDIO_INVOKED
-GUIDELINES DESIGNINFO DISCARDABLE
-BEGIN
- IDD_ABOUTBOX, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 228
- TOPMARGIN, 7
- BOTTOMMARGIN, 48
- END
-END
-#endif // APSTUDIO_INVOKED
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE PRELOAD DISCARDABLE
-BEGIN
- IDR_MAINFRAME "server\n\nServer\n\n\nServer.Document\nServer Document"
-
-END
-STRINGTABLE PRELOAD DISCARDABLE
-BEGIN
- AFX_IDS_APP_TITLE "server"
- AFX_IDS_IDLEMESSAGE "Bereit"
-END
-STRINGTABLE DISCARDABLE
-BEGIN
- ID_INDICATOR_EXT "ER"
- ID_INDICATOR_CAPS "UF"
- ID_INDICATOR_NUM "NUM"
- ID_INDICATOR_SCRL "RF"
- ID_INDICATOR_OVR "ÜB"
- ID_INDICATOR_REC "MA"
-END
-STRINGTABLE DISCARDABLE
-BEGIN
- ID_FILE_NEW "Erstellt ein neues Dokument.\nNeu"
- ID_FILE_OPEN "Öffnet ein bestehendes Dokument.\nÖffnen"
- ID_FILE_CLOSE "Schließt das aktive Dokument.\nSchließen"
- ID_FILE_SAVE "Speichert das aktive Dokument.\nSpeichern"
- ID_FILE_SAVE_AS "Speichert das aktive Dokument unter neuem Namen.\nSpeichern unter"
- ID_FILE_PAGE_SETUP "Ändert die Druckoptionen.\nSeite einrichten"
- ID_FILE_PRINT_SETUP "Ändert den Drucker und die Druckoptionen.\nDruckereinrichtung"
- ID_FILE_PRINT "Druckt das aktive Dokument.\nDrucken"
- ID_FILE_PRINT_PREVIEW "Zeigt ganze Seiten an.\nSeitenansicht"
- ID_APP_ABOUT "Zeigt Programm-Informationen, Versionsnummer und Copyright an.\nInfo"
- ID_APP_EXIT "Verläßt die Anwendung; fragt, ob Dokumente gespeichert werden sollen.\nBeenden"
- ID_FILE_MRU_FILE1 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE2 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE3 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE4 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE5 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE6 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE7 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE8 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE9 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE10 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE11 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE12 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE13 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE14 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE15 "Öffnet dieses Dokument."
- ID_FILE_MRU_FILE16 "Öffnet dieses Dokument."
- ID_NEXT_PANE "Wechselt zum nächsten Fensterausschnitt.\nNächster Ausschnitt"
- ID_PREV_PANE "Springt zum vorherigen Fensterausschnitt zurück.\nVorheriger Ausschnitt"
- ID_WINDOW_SPLIT "Teilt das aktive Fenster in Ausschnitte.\nTeilen"
- ID_EDIT_CLEAR "Löscht die Markierung.\nLöschen"
- ID_EDIT_CLEAR_ALL "Löscht alles.\nAlles löschen"
- ID_EDIT_COPY "Kopiert die Markierung und überträgt sie in die Zwischenablage.\nKopieren"
- ID_EDIT_CUT "Entfernt die Markierung und überträgt sie in die Zwischenablage.\nAusschneiden"
- ID_EDIT_FIND "Sucht den angegebenen Text.\nSuchen"
- ID_EDIT_PASTE "Fügt den Inhalt der Zwischenablage ein.\nEinfügen"
- ID_EDIT_REPEAT "Wiederholt die letzte Aktion.\nWiederholen"
- ID_EDIT_REPLACE "Ersetzt einen bestimmten Text durch einen anderen.\nErsetzen"
- ID_EDIT_SELECT_ALL "Markiert das gesamte Dokument.\nAlles markieren"
- ID_EDIT_UNDO "Macht die letzte Aktion rückgängig.\nRückgängig"
- ID_EDIT_REDO "Wiederholt die vorher rückgängig gemachte Aktion.\nWiederherstellen"
- ID_VIEW_TOOLBAR "Blendet die Symbolleiste ein oder aus.\nSymbolleiste ein-/ausschalten"
- ID_VIEW_STATUS_BAR "Blendet die Statusleiste ein oder aus.\nStatusleiste ein-/ausschalten"
-END
-
-STRINGTABLE DISCARDABLE
-BEGIN
- AFX_IDS_SCSIZE "Ändert die Fenstergröße."
- AFX_IDS_SCMOVE "Ändert die Position des Fensters."
- AFX_IDS_SCMINIMIZE "Verkleinert das Fenster zu einem Symbol."
- AFX_IDS_SCMAXIMIZE "Vergrößert das Fenster zu voller Größe."
- AFX_IDS_SCNEXTWINDOW "Wechselt zum nächsten Dokumentfenster."
- AFX_IDS_SCPREVWINDOW "Wechselt zum vorherigen Dokumentfenster."
- AFX_IDS_SCCLOSE "Schließt das aktive Fenster und fordert zur Dokumentspeicherung auf."
- AFX_IDS_SCRESTORE "Stellt das Fenster in seiner normalen Größe wieder her."
- AFX_IDS_SCTASKLIST "Aktiviert die Task-Liste."
- AFX_IDS_PREVIEW_CLOSE "Beendet die Seitenansicht.\nSeitenansicht beenden"
-END
-
-
-#endif
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-
-#define _AFX_NO_SPLITTER_RESOURCES
-#define _AFX_NO_OLE_RESOURCES
-#define _AFX_NO_TRACKER_RESOURCES
-#define _AFX_NO_PROPERTY_RESOURCES
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
-#ifdef _WIN32
-LANGUAGE 7, 1
-#pragma code_page(1252)
-#endif //_WIN32
-#include "res\\server.rc2" // non-Microsoft Visual C++ edited resources
-#include "l.deu\\afxres.rc" // Standard components
-#include "l.deu\\afxprint.rc" // printing/print preview resources
-#endif
-
-#endif // not APSTUDIO_INVOKED
diff --git a/TAO/examples/mfc/serverDoc.cpp b/TAO/examples/mfc/serverDoc.cpp
deleted file mode 100644
index 76cde0d8956..00000000000
--- a/TAO/examples/mfc/serverDoc.cpp
+++ /dev/null
@@ -1,86 +0,0 @@
-// $Id$
-
-// serverDoc.cpp : implementation of the CServerDoc class
-//
-
-#include "stdafx.h"
-#include "server.h"
-
-#include "serverDoc.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerDoc
-
-IMPLEMENT_DYNCREATE(CServerDoc, CDocument)
-
-BEGIN_MESSAGE_MAP(CServerDoc, CDocument)
- //{{AFX_MSG_MAP(CServerDoc)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerDoc construction/destruction
-
-CServerDoc::CServerDoc()
-{
- // TODO: add one-time construction code here
-
-}
-
-CServerDoc::~CServerDoc()
-{
-}
-
-BOOL CServerDoc::OnNewDocument()
-{
- if (!CDocument::OnNewDocument())
- return FALSE;
-
- // TODO: add reinitialization code here
- // (SDI documents will reuse this document)
-
- return TRUE;
-}
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerDoc serialization
-
-void CServerDoc::Serialize(CArchive& ar)
-{
- if (ar.IsStoring())
- {
- // TODO: add storing code here
- }
- else
- {
- // TODO: add loading code here
- }
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerDoc diagnostics
-
-#ifdef _DEBUG
-void CServerDoc::AssertValid() const
-{
- CDocument::AssertValid();
-}
-
-void CServerDoc::Dump(CDumpContext& dc) const
-{
- CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerDoc commands
diff --git a/TAO/examples/mfc/serverDoc.h b/TAO/examples/mfc/serverDoc.h
deleted file mode 100644
index 29be578e610..00000000000
--- a/TAO/examples/mfc/serverDoc.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// $Id$
-
-// serverDoc.h : interface of the CServerDoc class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_SERVERDOC_H__7B1C2A4C_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
-#define AFX_SERVERDOC_H__7B1C2A4C_7230_11D3_B94A_0010A4052E2A__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-
-class CServerDoc : public CDocument
-{
-protected: // create from serialization only
- CServerDoc();
- DECLARE_DYNCREATE(CServerDoc)
-
-// Attributes
-public:
-
-// Operations
-public:
-
-// Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CServerDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- //}}AFX_VIRTUAL
-
-// Implementation
-public:
- virtual ~CServerDoc();
-#ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected:
-
-// Generated message map functions
-protected:
- //{{AFX_MSG(CServerDoc)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_SERVERDOC_H__7B1C2A4C_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
diff --git a/TAO/examples/mfc/serverView.cpp b/TAO/examples/mfc/serverView.cpp
deleted file mode 100644
index f04edb9e4b0..00000000000
--- a/TAO/examples/mfc/serverView.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-// $Id$
-
-// serverView.cpp : implementation of the CServerView class
-//
-
-#include "stdafx.h"
-#include "server.h"
-
-#include "serverDoc.h"
-#include "serverView.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerView
-
-IMPLEMENT_DYNCREATE(CServerView, CView)
-
-BEGIN_MESSAGE_MAP(CServerView, CView)
- //{{AFX_MSG_MAP(CServerView)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- // Standard printing commands
- ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerView construction/destruction
-
-CServerView::CServerView()
-{
- // TODO: add construction code here
-
-}
-
-CServerView::~CServerView()
-{
-}
-
-BOOL CServerView::PreCreateWindow(CREATESTRUCT& cs)
-{
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
-
- return CView::PreCreateWindow(cs);
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerView drawing
-
-void CServerView::OnDraw(CDC* pDC)
-{
- CServerDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerView printing
-
-BOOL CServerView::OnPreparePrinting(CPrintInfo* pInfo)
-{
- // default preparation
- return DoPreparePrinting(pInfo);
-}
-
-void CServerView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
-{
- // TODO: add extra initialization before printing
-}
-
-void CServerView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
-{
- // TODO: add cleanup after printing
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerView diagnostics
-
-#ifdef _DEBUG
-void CServerView::AssertValid() const
-{
- CView::AssertValid();
-}
-
-void CServerView::Dump(CDumpContext& dc) const
-{
- CView::Dump(dc);
-}
-
-CServerDoc* CServerView::GetDocument() // non-debug version is inline
-{
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CServerDoc)));
- return (CServerDoc*)m_pDocument;
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CServerView message handlers
diff --git a/TAO/examples/mfc/serverView.h b/TAO/examples/mfc/serverView.h
deleted file mode 100644
index 2476187f6d1..00000000000
--- a/TAO/examples/mfc/serverView.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// $Id$
-
-// serverView.h : interface of the CServerView class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_SERVERVIEW_H__7B1C2A4E_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
-#define AFX_SERVERVIEW_H__7B1C2A4E_7230_11D3_B94A_0010A4052E2A__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-
-class CServerView : public CView
-{
-protected: // create from serialization only
- CServerView();
- DECLARE_DYNCREATE(CServerView)
-
-// Attributes
-public:
- CServerDoc* GetDocument();
-
-// Operations
-public:
-
-// Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CServerView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
-
-// Implementation
-public:
- virtual ~CServerView();
-#ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected:
-
-// Generated message map functions
-protected:
- //{{AFX_MSG(CServerView)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-};
-
-#ifndef _DEBUG // debug version in serverView.cpp
-inline CServerDoc* CServerView::GetDocument()
- { return (CServerDoc*)m_pDocument; }
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_SERVERVIEW_H__7B1C2A4E_7230_11D3_B94A_0010A4052E2A__INCLUDED_)
diff --git a/TAO/examples/mfc/w32_test.idl b/TAO/examples/mfc/w32_test.idl
deleted file mode 100644
index 4f6423e2ad5..00000000000
--- a/TAO/examples/mfc/w32_test.idl
+++ /dev/null
@@ -1,10 +0,0 @@
-// $Id$
-
-interface W32_Test_Interface
-{
- // = TITLE
- // Defines an interface that returns a response string.
-
- string getresponse (in long respnr);
-};
-
diff --git a/TAO/examples/mfc/w32_test_impl.cpp b/TAO/examples/mfc/w32_test_impl.cpp
deleted file mode 100644
index f9a745539f5..00000000000
--- a/TAO/examples/mfc/w32_test_impl.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-#include "StdAfx.h"
-
-// $Id$
-
-#include "w32_test_impl.h"
-
-W32_Test_Impl::~W32_Test_Impl (void)
-{
-}
-
-W32_Test_Impl::W32_Test_Impl (void)
-{
- blabla = 1;
-}
-
-
-char *
-W32_Test_Impl::getresponse (CORBA::Long respnr)
-{
- char *myreturn;
-
- switch (respnr)
- {
- case 1:
- myreturn = CORBA::string_dup ("Parameter 1");
- break;
- case 2:
- myreturn = CORBA::string_dup ("Parameter 2");
- break;
- default:
- myreturn = CORBA::string_dup ("Parameter unknown!");
- break;
- }
-
- return myreturn;
-}
diff --git a/TAO/examples/mfc/w32_test_impl.h b/TAO/examples/mfc/w32_test_impl.h
deleted file mode 100644
index 846029aa05a..00000000000
--- a/TAO/examples/mfc/w32_test_impl.h
+++ /dev/null
@@ -1,21 +0,0 @@
-// $Id$
-
-#ifndef w32_test_impl_h
-#define w32_test_impl_h
-
-#include "w32_testS.h"
-
-class W32_Test_Impl : public POA_W32_Test_Interface
-{
-public:
- ~W32_Test_Impl (void);
-
- W32_Test_Impl (void);
-
- char *getresponse (CORBA::Long respnr);
-
-private:
- int blabla;
-};
-
-#endif