Hi, I'm trying to use Skype4Com in Borland C++ Builder 6. Until now I cound access the Friend object and Friend.Count, but I don't know how to access each User in the UserCollection. Is anybody konw how to do this? thanks!

these are my codes.

// get the instance of Skype
oSkype = Variant::CreateObject("Skype4COM.Skype");

// test if Skype is running, if not, start it;
if( !oSkype.OlePropertyGet("Client").OlePropertyGet("IsRunning") ) {
oSkype.OlePropertyGet("Client").OleFunction("Start");
}
// Connect to Skype via API
oSkype.OleFunction("Attach");
Variant Item;

// get Skype friends
Variant friends = oSkype.OlePropertyGet("Friends");
Variant fCount = friends.OlePropertyGet("Count");
ShowMessage("Friends: " + String(fCount));

// for each user in friends... how?
/// ...