summaryrefslogtreecommitdiff
path: root/examples/Log_Msg
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-07-31 01:02:12 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-07-31 01:02:12 +0000
commit5881eb04249c4b4043aa2b168fafe948b2eddbb4 (patch)
treed5533595dea8884e43bdbc846da550d27435047d /examples/Log_Msg
parenta16a79567b2047c9257a686772cb46cb8b5de001 (diff)
downloadATCD-5881eb04249c4b4043aa2b168fafe948b2eddbb4.tar.gz
ChangeLogTag:Thu Jul 31 00:49:18 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'examples/Log_Msg')
-rw-r--r--examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.cpp7
-rw-r--r--examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.h6
-rw-r--r--examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.cpp6
-rw-r--r--examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.h6
-rw-r--r--examples/Log_Msg/Log_Msg_MFC/MFC_Log.cpp8
5 files changed, 30 insertions, 3 deletions
diff --git a/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.cpp b/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.cpp
index f25141b48a7..21f56184408 100644
--- a/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.cpp
+++ b/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.cpp
@@ -1,8 +1,11 @@
// Log_Msg_MFC.cpp : Defines the class behaviors for the application.
// $Id$
-#include "stdafx.h"
#include "Log_Msg_MFC.h"
+
+#if defined (ACE_WIN32)
+
+#include "stdafx.h"
#include "Log_Msg_MFCDlg.h"
#ifdef _DEBUG
@@ -88,3 +91,5 @@ BOOL CLog_Msg_MFCApp::InitInstance()
// application, rather than start the application's message pump.
return FALSE;
}
+
+#endif /* ACE_WIN32 */
diff --git a/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.h b/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.h
index b93d09bde02..e308ac312ac 100644
--- a/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.h
+++ b/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFC.h
@@ -4,6 +4,10 @@
#if !defined(AFX_LOG_MSG_MFC_H__03FA2C60_71EA_44F9_AC4C_2F19168B4755__INCLUDED_)
#define AFX_LOG_MSG_MFC_H__03FA2C60_71EA_44F9_AC4C_2F19168B4755__INCLUDED_
+#include "ace/config-all.h"
+
+#if defined (ACE_WIN32)
+
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
@@ -54,4 +58,6 @@ public:
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+#endif /* ACE_WIN32 */
+
#endif // !defined(AFX_LOG_MSG_MFC_H__03FA2C60_71EA_44F9_AC4C_2F19168B4755__INCLUDED_)
diff --git a/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.cpp b/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.cpp
index 7d0b23d77ed..dc7c3a11622 100644
--- a/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.cpp
+++ b/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.cpp
@@ -1,8 +1,11 @@
// Log_Msg_MFCDlg.cpp : implementation file
// $Id$
-#include "stdafx.h"
#include "Log_Msg_MFC.h"
+
+#if defined (ACE_WIN32)
+
+#include "stdafx.h"
#include "Log_Msg_MFCDlg.h"
#ifdef _DEBUG
@@ -181,3 +184,4 @@ void CLog_Msg_MFCDlg::OnDebugButtonClicked()
}
+#endif /* ACE_WIN32 */
diff --git a/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.h b/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.h
index adf21616732..78e197f9ff0 100644
--- a/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.h
+++ b/examples/Log_Msg/Log_Msg_MFC/Log_Msg_MFCDlg.h
@@ -4,6 +4,10 @@
#if !defined(AFX_LOG_MSG_MFCDLG_H__5BB9CACE_CBCE_40DD_B57F_ED05B79DB033__INCLUDED_)
#define AFX_LOG_MSG_MFCDLG_H__5BB9CACE_CBCE_40DD_B57F_ED05B79DB033__INCLUDED_
+#include "ace/config-all.h"
+
+#if defined (ACE_WIN32)
+
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
@@ -50,4 +54,6 @@ protected:
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+#endif /* ACE_WIN32 */
+
#endif // !defined(AFX_LOG_MSG_MFCDLG_H__5BB9CACE_CBCE_40DD_B57F_ED05B79DB033__INCLUDED_)
diff --git a/examples/Log_Msg/Log_Msg_MFC/MFC_Log.cpp b/examples/Log_Msg/Log_Msg_MFC/MFC_Log.cpp
index 37fe90091ce..bb03ac7c6d7 100644
--- a/examples/Log_Msg/Log_Msg_MFC/MFC_Log.cpp
+++ b/examples/Log_Msg/Log_Msg_MFC/MFC_Log.cpp
@@ -3,9 +3,12 @@
//
//////////////////////////////////////////////////////////////////////
-#include "stdafx.h"
#include "MFC_Log.h"
+#if defined (ACE_WIN32)
+# include "stdafx.h"
+#endif /* ACE_WIN32 */
+
#include "ace/Log_Record.h"
//////////////////////////////////////////////////////////////////////
@@ -25,7 +28,10 @@ MFC_Log::log(ACE_Log_Record& log_record)
ACE_OS::sprintf(Message,"%d.%03ld %s", log_record.time_stamp().sec(),
log_record.time_stamp().usec()/ 1000, log_record.msg_data());
+
+#if defined (ACE_WIN32)
::OutputDebugString(Message);
+#endif /* ACE_WIN32 */
}
MFC_Log::~MFC_Log()