author | Michael Krelin <hacker@klever.net> | 2004-11-03 21:50:28 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2004-11-03 21:50:28 (UTC) |
commit | 5f552506513653f08acc6921b8c158489a7ebbbb (patch) (unidiff) | |
tree | 74ab06cf90c488915b87f48e74359554521cbec9 /PumpKINDlg.cpp | |
parent | 4435ed85c3acb4df42135e009b133fb8e9d2f09c (diff) | |
download | pumpkin-5f552506513653f08acc6921b8c158489a7ebbbb.zip pumpkin-5f552506513653f08acc6921b8c158489a7ebbbb.tar.gz pumpkin-5f552506513653f08acc6921b8c158489a7ebbbb.tar.bz2 |
Added dialog box in case we can't bind listening socket.
git-svn-id: http://svn.klever.net/kin/pumpkin/trunk@47 fe716a7a-6dde-0310-88d9-d003556173a8
-rw-r--r-- | PumpKINDlg.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/PumpKINDlg.cpp b/PumpKINDlg.cpp index 0b3bf41..fc24596 100644 --- a/PumpKINDlg.cpp +++ b/PumpKINDlg.cpp | |||
@@ -324,12 +324,13 @@ int CPumpKINDlg::OnCreate(LPCREATESTRUCT lpCreateStruct) | |||
324 | if (CDialog::OnCreate(lpCreateStruct) == -1) | 324 | if (CDialog::OnCreate(lpCreateStruct) == -1) |
325 | return -1; | 325 | return -1; |
326 | 326 | ||
327 | m_Listener.m_Daddy=this; | 327 | m_Listener.m_Daddy=this; |
328 | if(!m_Listener.Create(m_ListenPort,SOCK_DGRAM)){ | 328 | if(!m_Listener.Create(m_ListenPort,SOCK_DGRAM)){ |
329 | TRACE0("Failed to create socket\n"); | 329 | TRACE0("Failed to create socket\n"); |
330 | AfxMessageBox(IDS_BOX_CANTBIND,MB_OK|MB_ICONEXCLAMATION); | ||
330 | return -1; | 331 | return -1; |
331 | } | 332 | } |
332 | 333 | ||
333 | if(!m_Trayer->Create(NULL,"PumpKIN TrayIcon",WS_CHILD,CRect(0,0,0,0),this,0)){ | 334 | if(!m_Trayer->Create(NULL,"PumpKIN TrayIcon",WS_CHILD,CRect(0,0,0,0),this,0)){ |
334 | TRACE0("Failed to create trayer\n"); | 335 | TRACE0("Failed to create trayer\n"); |
335 | return -1; | 336 | return -1; |