|
STDMETHODIMP CMyAPI::Repeat(
BSTR Value,
long nCnt,
BSTR *pVal
)
{
_bstr_t bstrValue;
LboxString LString;
bstrValue.operator = (Value);
LString.Repeat( (LPTSTR)bstrValue, nCnt );
bstrValue.operator = (LString.szLboxString);
*pVal = bstrValue.copy();
return S_OK;
}
| |