Hi all,

I try to create an extension to Thunderbird for syncronize the contact list with my PDA.

I have create with XUL a new window and where I try to show the contact list.

I create a js file that connect to XPCOM components and I use the syntax found in many tutorial but when execute the code I raise an exception and the execution of the routine brak and exit.

The code I write is shown below:

var aBookSvc = Components.classes["@mozilla.org/addressbook/carddatabase;1"].getService(); var aBook = aBookSvc.QueryInterface(Components.interfaces.nsIAddrDatabase);
  var nCard = -1;
  aBook.getCardCount(nCard);

The istruction that generate the error is "aBook.getCardCount(nCard);".


Where i mistake????

Please help me!!
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to