摘要: 出现这个问题一般都是从VC6.0 工程升迁到vs中出现的afx_msg void OnSocket(WPARAM wParam,LPARAM lParam);解决方法为afx_msg LPRESULT OnSocket(WPARAM wParam,LPARAM lParam);在对应的函数实现中也将... 阅读全文
posted @ 2014-12-16 13:00 尽子轨 阅读(2104) 评论(0) 推荐(0) 编辑
摘要: 在unicode下:CString test="c++";string str=CT2A(test.GetBuffer(0));在非unicode下CString test="c++";string str=test.GetBuffer(0); 阅读全文
posted @ 2014-12-10 12:01 尽子轨 阅读(531) 评论(0) 推荐(0) 编辑
摘要: http://www.regexlab.com/ 阅读全文
posted @ 2014-12-07 21:02 尽子轨 阅读(140) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/xbmoxia/article/category/2150411 阅读全文
posted @ 2014-11-30 20:43 尽子轨 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 转http://www.aichengxu.com/view/207 阅读全文
posted @ 2014-11-29 13:17 尽子轨 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include"iphlpapi.h" 4 #pragma comment(lib,"Iphlpapi.lib") 5 void Get_IP() 6 { 7 PIP_ADAPTER_INFO pAdapterInfo; 8 PIP... 阅读全文
posted @ 2014-11-19 21:04 尽子轨 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 使用下面两个函数来进行创建子窗口#includeWINDOW *subwin(WINDOW *parent,int num_of_lines,int num_of_cols,int start_y,int start_x);int delwin(WINDOW *window_to_delete); ... 阅读全文
posted @ 2014-11-16 17:42 尽子轨 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 static struct termios initial_settings,new_settings; 9 static int peek... 阅读全文
posted @ 2014-11-16 16:51 尽子轨 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define PW_LEN 256 7 #define NAME_LEN 256 8 int main() 9 { 10 initscr(); 11 ... 阅读全文
posted @ 2014-11-16 14:21 尽子轨 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 int main() 6 { 7 initscr(); 8 clear(); 9 move(5,15);10 printw("%s","hel... 阅读全文
posted @ 2014-11-14 14:09 尽子轨 阅读(236) 评论(0) 推荐(0) 编辑