Hello ppl,

Funny problem.

I have an array filled with TBTSockAddr values which are inserted when i perform my discovery. My array is defined like this:
CArrayFixSeg<TSockAddr>* sockAddrArray

Later i wish to form a connection, but first i need to supply the Socket.Connect() function with a TBTSockAddr from the array.

So just to test the code, ... i do this:

TBTSockAddr iBTSockAddr(sockAddrArray[0]);

I get the following error:

error C2664: '__thiscall TBTSockAddr::TBTSockAddr(const class TSockAddr &)' : cannot convert parameter 1 from 'class CArrayFixSeg<class TSockAddr>' to 'const class TSockAddr &'
Reason: cannot convert from 'class CArrayFixSeg<class TSockAddr>' to 'const class TSockAddr'
No constructor could take the source type, or constructor overload resolution was ambiguous

Any idea anyone?

If its of any help, here's how i insert values into my array:

TSockAddr sockAddr = static_cast<TSockAddr>(entry().iAddr);
aSockAddrArray.InsertL(i, sockAddr);