G
Guest
Line:
********
HRESULT CMngdServer::IServerSink::OnReceive(System::IntPtr pbtBuf)
{
void *pBtData = (void*)System::IntPtr:
p_Explicit(pbtBuf);// <-- Produce the error
}
The output:
************
error C2668: 'System::IntPtr:
p_Explicit' : ambiguous call to overloaded function
could be '__int64 System::IntPtr:
p_Explicit(System::IntPtr)'
or 'int System::IntPtr:
p_Explicit(System::IntPtr)'
or 'void *System::IntPtr:
p_Explicit(System::IntPtr)'
while trying to match the argument list '(System::IntPtr)'
Why is that happening? Why does the compiler produce this kind of error?
Nadav
http://www.ddevel.com
********
HRESULT CMngdServer::IServerSink::OnReceive(System::IntPtr pbtBuf)
{
void *pBtData = (void*)System::IntPtr:

}
The output:
************
error C2668: 'System::IntPtr:

could be '__int64 System::IntPtr:

or 'int System::IntPtr:

or 'void *System::IntPtr:

while trying to match the argument list '(System::IntPtr)'
Why is that happening? Why does the compiler produce this kind of error?
Nadav
http://www.ddevel.com