winbinder + skype

From: Date: Fri, 22 Jul 2005 11:33:27 +0000
Subject: winbinder + skype
Groups: php.windows 
Request: Send a blank email to php-windows+get-26221@lists.php.net to get a copy of this message
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?

« previous php.windows (#26221) next »