请问下COM组件的字符串变量出错的问题
代码是这样的:
CString s;
long count,intX,intY,dm_ret;
dm.KeyPress(48);
Sleep(1500);
s=dm.FindColorEx(334,611,391,629,"6eb9a0",0.9,0);
count = dm.GetResultCount((LPCTSTR)_bstr_t(s.AllocSysString(),false));
while (count)
{
dm_ret = dm.GetResultPos(s,index,intX,intY);
MessageBox (intX&","&intY);
count--;
}