diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-07-18 14:46:57 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-07-18 14:46:57 +0000 |
commit | 2de495754c224f6c5fef4c202be81cf9f24bda6d (patch) | |
tree | 8a153f75d24851c14cf2a57de7e9ae113df950a8 /cppe/demo/IceE/chat/ChatClient.cpp | |
parent | Fixed Pure client lib build and chat demo build (diff) | |
download | ice-2de495754c224f6c5fef4c202be81cf9f24bda6d.tar.bz2 ice-2de495754c224f6c5fef4c202be81cf9f24bda6d.tar.xz ice-2de495754c224f6c5fef4c202be81cf9f24bda6d.zip |
Fixed ICEE_HAS_ROUTER build
Diffstat (limited to 'cppe/demo/IceE/chat/ChatClient.cpp')
-rw-r--r-- | cppe/demo/IceE/chat/ChatClient.cpp | 16 |
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 |