o******r 发帖数: 259 | 1 thanks for the info
after goole, the workaround is,
class A
{
public:
int Add(int X) {return Add(X, 1);};
protected:
virtual int Add(int X, int Y) {return X+Y;};
};
class B: public A
{
public:
using A::Add;
private:
int Add(int X, int Y) {return X-Y;};
}; |
|
c********e 发帖数: 383 | 2 info gdb
On most systems, GDB has no special support for debugging programs
which create additional processes using the `fork' function. When a
program forks, GDB will continue to debug the parent process and the
child process will run unimpeded. If you have set a breakpoint in any
code which the child then executes, the child will get a `SIGTRAP'
signal which (unless it catches the signal) will cause it to terminate.
However, if you want to debug the child process there is a workaround
whi |
|
i**p 发帖数: 902 | 3 http://www.acceleratedcpp.com/details/msbugs.html
Chapter 12
Similar to the problems in Chapters 6 and 8, where VC++ 6.0 fails to include
the character classification functions (isalpha, isalnum, isspace etc.) as
part of the std namespace, it also fails to include the strlen function in
std. The workaround is analogous: Omit the qualification of std::strlen.
For example, in the Str constructor that takes a const char*:
#ifdef _MSC_VER
std::copy(cp, cp + strlen(cp), std::back_inserter(data));
#el |
|
g****j 发帖数: 6 | 4 谢谢楼上的二位大哥了,虽然还是没能完全解决问题,但是也至少找到了突破口,the
problem is Excel 的每个cell不能hold 超过911 char的text, 看来这个限制不好突破
。变通了一下,
create a public function as workaround of CopyFromRecordset,then it works all the way.
Function CopyRecordsetToArray(rsData As ADODB.Recordset) As Variant()
'Create an array where # rows = # records and # columns = # fields
'in the recordset.
Dim TempArray() As Variant
Dim r As Integer, c As Integer
ReDim TempArray(1 To rsData.RecordCount, 1 To rsData.Field |
|
t***a 发帖数: 41 | 5 【 以下文字转载自 Seattle 讨论区 】
发信人: tihpa (pains), 信区: Seattle
标 题: 请教MS的高手一个shell的问题
发信站: BBS 未名空间站 (Wed Aug 12 23:37:28 2009, 美东)
运行make under command line(cmd.exe of xp)。
makefile里面
我的本意是通过运行(shell cd)来自动获到当前的目录,
BASE_DIR := $(subst \,/,$(shell cd))
但是 echo $(BASE_DIR),却什么也没有
echo $(shell cd) 也是什么也没有return
我只能手动加上路径
另外一个奇怪的问题是
SOURCE_PATH :=$(PATH);$(PATH2)
可是我的shell把这个;解析成了回车换行了,所以PATH2就出错了
现在的workaround
SOURCE_PATH :=$(PATH)";"$(PATH2)
这个是不是我的shell出问题了,因为相同的makefile可以在laptop载运行(也是xp),想
请教一个MS的牛人, |
|
X****r 发帖数: 3557 | 6 本来一行的workaround就可以解决的事情,review我code的哥们
非要我用正规的方法,结果支持工具有问题,也没有文档查阅,搞了整整一天。
虽说长远看弄对了好,但是就这个问题上也有点太浪费时间了吧。
deadline就在眼前,许多主要feature还没影呢。 |
|