Error in compilation --- 'Operator +' is Ambiguous

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Girish Kanakagiri
    New Member
    • May 2007
    • 93

    Error in compilation --- 'Operator +' is Ambiguous

    Hi,

    Can any one please resolve this compilation error.

    ..\DBAccess\Loc alization.cpp(3 81) : error C2593: 'operator + ' is ambiguous

    Error executing cl.exe

    DK_SSE_VCT.dll - 1 error(s), 0 warning(s)

    Actually This was running fine earlier.
    Now the VC++ 6.0 Environment has been
    reset, As VC++ installed in new system & while trying to build I am getting this error.
    Can any one please tell me to make any settings in the environment, without
    making code change to resolve this error

    Code:
    _variant_t fieldValue = pRs->Fields->GetItem(_variant_t(fieldCnt))->Value;
    if (fieldValue.vt & VT_BSTR){
    wstring fieldValueWithQuotes = L"'" + (_bstr_t)fieldValue + L"'"; // This is Line 381
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    This is posted on another thread.

    I am closing this thread.

    Comment

    Working...