FileZilla Forums

Welcome to the official discussion forums for FileZilla
Donate to project
It is currently 2009-11-21 12:21

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: I have a question about FileZilla Server
PostPosted: 2009-11-01 14:01 
Offline
500 Command not understood

Joined: 2009-10-22 08:10
Posts: 4
in server.cpp
Code:
LRESULT CALLBACK CServer::WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
   CServer *pServer=(CServer *)GetWindowLongPtr(hWnd, GWLP_USERDATA);

   if (message == WM_CLOSE)
   {
      pServer->OnClose();
      return 0;
   }
   else if (message >= WM_FILEZILLA_SERVERMSG)  // system message can enter this (for example message=49365)
   {
      UINT index = message - WM_FILEZILLA_SERVERMSG;
      if (index >= pServer->m_ThreadNotificationIDs.size())
         return 0;                             // if system message enter ,the message can't be handled.
                         ..........
             }
             return ::DefWindowProc(hWnd, message, wParam, lParam);
}


Code:
else if (message >= WM_FILEZILLA_SERVERMSG && message < WM_FILEZILLA_SERVERMSG + pServer->m_ThreadNotificationIDs.size())              // it can limit the scope of the  WM_FILEZILLA_SERVERMSG


Top
 Profile  
 
 Post subject: Re: I have a question about FileZilla Server
PostPosted: 2009-11-01 16:36 
Offline
Site Admin
User avatar

Joined: 2004-02-23 20:49
Posts: 11743
So what is your question?


Top
 Profile  
 
 Post subject: Re: I have a question about FileZilla Server
PostPosted: 2009-11-02 03:43 
Offline
500 Command not understood

Joined: 2009-10-22 08:10
Posts: 4
in server.cpp
else if (message >= WM_FILEZILLA_SERVERMSG)
{
UINT index = message - WM_FILEZILLA_SERVERMSG;
if (index >= pServer->m_ThreadNotificationIDs.size())
return 0;
}

System Message will enter the IF statement, but could not be processed.


Top
 Profile  
 
 Post subject: Re: I have a question about FileZilla Server
PostPosted: 2009-11-02 07:38 
Offline
Site Admin
User avatar

Joined: 2004-02-23 20:49
Posts: 11743
That's a statement, not a question.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Server sponsored by Hetzner Online AG