![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 72
天使爱撒谎
这个作者很懒,什么都没留下…
展开
-
多字节MFC工程下char*转CString乱码的研究
int lengthOfWcs1 = MultiByteToWideChar( CP_UTF8, 0, text_out.string(), -1, NULL, 0 ); wchar_t* wcs1 = new wchar_t[lengthOfWcs1 + 1]; MultiByteToWideChar( CP_UTF8, 0, text_out.string(), -1, wcs1, len原创 2013-11-20 11:35:57 · 2743 阅读 · 1 评论 -
C++ split的实现(转)
void split(const string& src, const string& separator, vector& dest){ string str = src; string substring; string::size_type start = 0, index; do { index = str.find_first_of(separator,start);转载 2013-11-21 14:26:50 · 1319 阅读 · 0 评论 -
使用MAP文件快速定位程序崩溃代码行
作为程序员,平时最担心见到的事情就是程序发生了崩溃,无论是指针越界还是非法操作,都将给我们的应用系统造成巨大的损失。但在一个大型系统的测试过程中,初期出现程序崩溃似乎成了不可避免的事。其实测试中出现程序崩溃并不可怕,反而是测试的成功。我们更为关心的是程序中的哪一行导致了系统崩溃,这样我们才能有针对性的进行改正。 在VC中,我们可以利用出现程序崩溃时VC的自动跳转,定位到出错代码行。但在大量的转载 2014-05-26 10:54:31 · 664 阅读 · 0 评论 -
Policies/Binary Compatibility Issues With C++
DefinitionA library is binary compatible, if a program linked dynamically to a former version of the library continues running with newer versions of the library without the need to recompile.转载 2014-11-04 15:29:18 · 610 阅读 · 0 评论