如下图所示的设置项中选择支持中文字符集的编码后重启Eclipse即可

K-Res
The source file is different from when the module was built.
*******************************
Source file: D:\Projects\StereoMatch\stereomatcher.cpp
Module: D:\Projects\StereoMatch\Debug\StereoMatch.exe
Process: [4024] StereoMatch.exe
The source file is different from when the module was built. Would you like the debugger to use it anyway?
*******************************
***********************************
At StereoMatcher.cpp, line 166 (‘ComputeCorrespondence()’, line 128)
The breakpoint will not currently be hit. The source code is different from the original version.
关于stl vector调用erase后的Vector iterators incompatible!
出错代码如下(VS2010),使用vector迭代器遍历并对满足条件的元素进行删除,
vector::iterator it=m_vecDataUnits.begin();
for (;it!=m_vecDataUnits.end();)
{
if (it->m_bSelected)
{
m_vecDataUnits.erase(it);
}
else
it++;
}
正确方法如下,删除vector元素后的it应该使用erase返回的值
vector::iterator it=m_vecDataUnits.begin();
for (;it!=m_vecDataUnits.end();)
{
if (it->m_bSelected)
{
it = m_vecDataUnits.erase(it);
}
else
it++;
}
EMG主动拾音器tone电位器配电容的范围
在EMG User Forum上看到有人问道,记录官方回复:
by James K. on Tue Feb 17, 2009 3:34 pm
From our tech dept. — “0.033mf provides the most roll off, and the 0.22mf provides the least”
Hope that helped!
回来准备淘些电容换上试试看到底这个小东西对音色影响能有多大。
[ZT]WIPI为何
原文:http://blog.csdn.net/flowingflying/archive/2010/08/12/5807527.aspx
下午有个厂家介绍Wipi,开始还以为是wifi或者wapi之类的,但是这是韩国人推动的一个移动平台,在wiki上如下介绍,但是具体沟通后,发现wiki的说法也有错漏。Wifi is C based not java based.而这个是wipi的特性,但我问他们与流行的平台相比有什么特别时,这是一个重要的说辞。
Visual Studio下的C++程序断点windows api调试的方法
就当是个记录吧,收藏夹多了也不好找。
以前抄过一个利用dbghelp api来进行release版调试跟踪的工具类,就是当release版exe在客户机上异常后记录堆栈,局部变量,寄存器值等的东西。突然发现一个小问题需要断点调试检查,但发现这个在挂着调试器的时候就不起作用了,google发现这篇文章:
http://www.debuginfo.com/articles/debugfilters.html
大概意思看明白了,结果文中提到的下windows api断点的部分不知道怎么做,继续google发现MSDN上有大致说明:
http://msdn.microsoft.com/en-us/library/d16ayc6z.aspx
手动添加断点的location要这样:{,,USER32.DLL}_MessageBeep@4,用起来还是比较麻烦的,因为还要涉及到api的dll中导出decorated name,不过至少是能用了,知足常乐。
PS:注意这个提到的是32bit系统下,而且调试时需要导入这些加在的系统dll的调试符号,好在发现VS2010有个Load symbols from microsoft symbol servers,虽然下载慢了点不过还是挺方便的。
