summaryrefslogtreecommitdiff
path: root/cppe/demo/IceE/chat/ChatClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/demo/IceE/chat/ChatClient.cpp')
-rw-r--r--cppe/demo/IceE/chat/ChatClient.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/cppe/demo/IceE/chat/ChatClient.cpp b/cppe/demo/IceE/chat/ChatClient.cpp
index bc9216ded7e..b068a5714c4 100644
--- a/cppe/demo/IceE/chat/ChatClient.cpp
+++ b/cppe/demo/IceE/chat/ChatClient.cpp
@@ -13,6 +13,8 @@
#include "ChatClientDlg.h"
#include "Chat.h"
#include "LogI.h"
+
+
#ifdef _DEBUG
#define new DEBUG_NEW
@@ -31,6 +33,8 @@ CChatClientApp::CChatClientApp()
CChatClientApp theApp;
+#ifdef ICEE_HAS_ROUTER
+
BOOL CChatClientApp::InitInstance()
{
//
@@ -91,3 +95,15 @@ BOOL CChatClientApp::InitInstance()
// application, rather than start the application's message pump.
return FALSE;
}
+
+#else
+
+BOOL CChatClientApp::InitInstance()
+{
+ InitCommonControls();
+ CWinApp::InitInstance();
+ AfxMessageBox(CString("This demo requires Ice-E built with router support."), MB_OK|MB_ICONEXCLAMATION);
+ return FALSE;
+}
+
+#endif