如何正确获得函数里的返回值呢?
xie66 2005-08-20 11:39:11 定义
==============================
CString CHelloDialog::VerifyFinger(LONG* autoId, BSTR* ssname)
{
CString name = "";
LONG id = 0;
name = m_pRecordset->GetFields()->GetItem("name")->GetValue();//name字段是文本型
ssname = (BSTR*)name.AllocSysString();
id = m_pRecordset->GetFields()->GetItem("autoId");//autoId是数字型
autoId = (LONG*)id;
}
调用
=============================
LONG a = 0;
BSTR b = ::SysAllocString(L"");
VerifyFinger(&a, &b);
怎么a、b都没有获得值呢?