Hi guys,
i'm making a application with winbinder to test skype-api.
My code is this:
<?
function process_main($window, $id) {
switch($id) {
* //this code no have problem i send a chat-message to another user*
case 101:
$com = new COM("SKYPEAPI.Access") or die("can not create
SKYPEAPILib.Access object");
$com -> Connect();
$com -> SendMessage("myfriend", "my com example");
break;
* //this code is a problem*
case 102:
$com = new COM("SKYPEAPI.Access") or die("can not create
SKYPEAPILib.Access object");
$com -> Connect();
$name = "myfriend";
sleep(3);
$a = $com -> $name.UserStatus;
wb_message_box($window, $a);
break;
* //end problem-code*
case IDCLOSE:
wb_destroy_window($window);
break;
}
?>
my problem is that i send message without problem, but if i use the
second button and i wont know userstatus, my application give error:
*szAppname php-win.exe szAppVer: 5.0.3.3 szModName: hungapp
szModVer: 0.0.0.0 offset: 0000000**.*
if i change code so for second button:
$com = new COM("SKYPEAPI.Access") or die("can not create
SKYPEAPILib.Access object");
$com -> Connect();
$name = "myfriend";
$a = $com -> UserStatus($name);
wb_message_box($window, $a);
break;
Don't give a error but the application close self.
Someone can help me?