C2385 ????? ??? ??? ??????? ?????? ??????? C++

?????? ????????? ?????? ?????????
???? ???????: 323918 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

???????

?? ???? ????? ????????? ???????? Visual C++ ?? ????? ????? ????? "? ?? ????? ????? ??? C2385.

?????

???? ??? ??????? ????? ????? ??? ?? ?????? ??????? ??????? C++ ?? Microsoft Visual Studio .NET.

????

????? ???? ????? ????? ?? Microsoft ???? ????? ??? ?? ?? ??????? ??????? ?? ??? ??????? ???. ?????? ??? ??? ????? ????????? ???? ????? ??? ??????? ????????. ?? ??? ????? ???????? ?????? ??? ??? ???????. ?????? ??? ?? ??? ????? ??? ??????? ??????? ???? Microsoft ????????? ??? ??????? ?????? ?? ???? ?????? Visual Studio .NET ????? ????? ??? ??? ??????? ??????.

??? ??? ??????? ?????? ???? ?????? ??? ???????? ?? Microsoft "?????? ??? ???????. ?????? ??? ????? ????? ?????? ?????? ????? ??? ?????? Microsoft ???? ??????? ??? ?????? ?????? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS
??????: ?? ??? ???????? ?? ??? ????? ????????? ???? ?????? ????? ??? ??????? ????? ??? ??? ?????? ????? ??? Microsoft ?? ??????? ?????? ??? ???? ??? ?? ???????. ???? ????? ?????? ????? ???????? ??? ????? ????? ???????? ????????? ???? ?? ???? ??? ???? ??? ???????.

????? ????? ?????????? ?? ??? ??????? ???? ????? (?? ??????) ???????? ?? ?????? ??????. ??? ??? ???????? ???????? ?????? ???? ??????? ???????? ??????? coordinated (UTC). ????? ???? ???? ??????? ?????? ??? ??????? ??? ??????? ??????. ?????? ????? ??? ??????? ??????? (UTC) ???????? ??????? ?????? ????? ??????? ??????? ??????? ?? ???? ??????? ?????? ?? "???? ??????".
   Date           Version       Size             File name     
   ---------------------------------------------------------
   04-Jun-2002    13.0.9503.0   2,105,344 bytes  C1xx.dll
   04-Jun-2002    13.0.9503.0   1,757,184 bytes  C2.dll
				

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ????? ??? ???????.

??????? ????

????? ????? ??? ???????, ????? ????? ????????? ???????? Microsoft Visual C++ .NET ??????? ?? Visual Studio .NET:
#include <stdio.h>

class V
{
public:
    V(){ printf("Just testing\n"); }
};

class A : virtual public V
{
    /* ... */ 
};

class B : virtual public V
{
    /* ... */ 
};

class C : public A, public B
{
    void DoNothing(const V&)
    {
        ;
    }

    void VC7_Ambiguity(void)
    {
        DoNothing(V());
    }
};

int main(void)
{
    C c;

    return 0;
}
				
??? ????? ??? ???????? ???????? ?? Visual Studio .NET ? ???? ??????? ?????? ?? ???? ???????:
x3.cpp
x3.cpp(29) : error C2385: ambiguous access of 'V' in 'C'
        could be the 'V' in base 'V'
        or the 'V' in base 'V'
x3.cpp(29) : error C2065: 'V' : undeclared identifier
					

???????

???? ???????: 323918 - ????? ??? ??????: 06/???? ??????/1435 - ??????: 1.2
????? ???
  • Microsoft Visual C++ .NET 2002 Standard Edition
????? ??????: 
kbnosurvey kbarchive kbmt kbbug kbcompiler kbfix kbqfe KB323918 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????323918

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com