Posted on 2007-08-09 14:03
daiybh 閱讀(215)
評論(0) 編輯 收藏 引用 所屬分類:
mfc
不知道這些算的上是錯誤不。就用(不一樣)來代替吧。
-
在for里面定義的int i 可以在for 后面使用。。
這個問題在移植過程中修改起來很累。當(dāng)然也算的上錯誤了
解決方法: 在afxwin.h 或者在afx.h中添寫
#define for if(0); else for
-
在程序中使用winsock2。
在afxsock.h中
- 修改
#ifndef _WINSOCKAPI_
#include <winsock.h>
#endif
為
#ifndef _WINSOCKAPI_
#include <winsock2.h>
#endif