统计 |
blog名称:人在旅途 日志总数:175 评论数量:505 留言数量:13 访问次数:1667944 建立时间:2005年12月7日 |
生命是过客,人在旅途。奶奶是信基督教的,没啥文化,却养育了四子二女,还带过九个孙辈。老人家对生命的看法就是“人都是客人,迟早要回去的。”就以《人在旅途》来纪念她。

« | September 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | |
|
公告 |
本人上传的源程序中可能引用或使用了第三方的库或程序,也可能是修改了第三方的例程甚至是源程序.所以本人上传的源程序禁止在以单纯学习为目的的任何以外场合使用,不然如果引起任何版权问题,本人不负任何责任. | |

|
本站首页 管理页面 写新日志 退出
调整中...
[微软技术开发]Some thing about _bstr_t converting to char* or whcar* |
人在旅途 发表于 2006/1/22 8:24:52 | Some functions will require the arguement as char* , LPTSTR or WCHAR*, you can directory pass your variable of _bstr_t type to these functions and these functions can convert it automatically.
But, when the functions' arguments are used for returning value, then you can not do it as followings: For Example: LPTSTR str = (LPTSTR )some_of_bstr_t; SomeFunctions(str ,...); or SomeFunctions((LPTSTR )some_of_bstr_t,...);
Most important: T
|
阅读全文(5897) | 回复(0) | 编辑 | 精华 | 删除 |
[微软技术开发]Event handling of the COM object in VB |
人在旅途 发表于 2006/1/22 8:22:08 | In VB, if you import a COM object and handle it's event which will be fired within a internal thread in that COM object, you will find you can't do anthing in that event handle routine of VB(otherwise there is a momery writing error waiting for you).
|
阅读全文(1717) | 回复(0) | 编辑 | 精华 | 删除 |
[微软技术开发]MFC:New MFC class as an array, big problem |
人在旅途 发表于 2006/1/22 8:21:01 | As you know, you can do like this: long* pLong = new long[100]; delete pLong;
But you can't do like this: CString pStrArray = new CString[100]; delete pStrArray; //this line, in debug version caused an assert; in release version caused unstable proceeding result.
But fortunately, you can use CStringArray instead.
notes: There is quite a few MFC class like CString which you can't new as an array.
|
阅读全文(1744) | 回复(0) | 编辑 | 精华 | 删除 |
|