博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2007年5月12日

摘要: 在用这段代码的时候发现accept总是在没有连接就直接返回了:int clientAddrLen = 0;cSocket = accept(lSocket,(SOCKADDR*)&clientAddr,&clientAddrLen);弄了N久后才发现是这个问题,之前看MSDN还以为第三个参数只是对外传的呢,汗这段代码就OK了int clientAddrLen = sizeof(SOCKADDR);... 阅读全文

posted @ 2007-05-12 16:48 叶落无痕 阅读(1927) 评论(3) 推荐(0) 编辑

摘要: CString to BSTR When programming with ActiveX, you will sometimes need a value represented as a type BSTR. A BSTR is a counted string, a wide-character (Unicode) string on Intel platforms and can co... 阅读全文

posted @ 2007-05-12 13:05 叶落无痕 阅读(3362) 评论(0) 推荐(0) 编辑