ICQ

squeak at poczta.onet.pl squeak at poczta.onet.pl
Wed Sep 17 11:22:45 EDT 2008


I wrote code like in example but it wont work, why ?
Here is the code:

 init_libpurple();
 PurplePlugin *pp = purple_plugin_probe("libicq.dll");
 if ( !pp ) {
  MessageBox( 0, "Nie można załadować wtyczki", NAZWAPROGRAMU, 0 );
  return 0;
 }
 purple_plugin_load(pp);
 purple_plugin_register(pp);
 PurpleAccount *pa = purple_account_new( "Gizmo", pp->info->id );
 if ( !pa ) {
  MessageBox( 0, "Nie można utworzyć konta", NAZWAPROGRAMU, 0 );
  return 0;
 }
 purple_account_set_username( pa, "467883116" );
 purple_account_set_password ( pa, "password" );
 purple_account_set_enabled( pa, UI_ID, TRUE );
 purple_account_connect( pa );
 PurpleConnection *pc = purple_account_get_connection( pa );
 if ( pc ) {
  purple_connection_set_account( pc, pa );
  pc->prpl = pp;
 }
 PurpleSavedStatus *status = purple_savedstatus_new(NULL,
PURPLE_STATUS_AVAILABLE);
 purple_savedstatus_activate(status);
 connect_to_signals_for_demonstration_purposes_only();

What am i doing wrong ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pidgin.im/pipermail/devel/attachments/20080917/3564ddfc/attachment.htm 


More information about the Devel mailing list