2008年3月27日 星期四

compile error: crosses initialization

../include/StSvrCmdThread.h:3157: crosses initialization of `int send_ret'
這種錯誤似乎是指程式碼中有用到goto時
使用goto的地方和lable中間如果有宣告變數
就會出現這種錯誤...

2008年3月12日 星期三

530 Login incorrect. ??

Status: Connecting to 172.16.100.66:19999 ...
Status: Connected with 172.16.100.66:19999.
Waiting for welcome message...
Response: 220 (vsFTPd 2.0.5)
Command: USER ccc
Response: 331
Please specify the password.
Command: PASS *********
Response: 530 Login incorrect.

一開始以為是帳號密碼有問題
沒想到是因為改到pam_service_name=vsftpd
這行似乎不能隨便更改 可能要搭配改變其他設定(??)才行

2008年3月4日 星期二

VC2005 import DLL with CString

VC2005的WTL project要import一個MFC的DLL時出現問題
似乎參數不可以使用CString 因為ATL和MFC的CString type不一樣
還沒找到解決的辦法 暫時使用TCHAR