--===============2067137319== Content-Type: multipart/signed; boundary="nextPart1332222.uTboTTD44S"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1332222.uTboTTD44S Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Chakkaradeep C C wrote: >Hi all, > Am new to KDE Programming and i started off learning KParts. The > tutorials had something called "Factory Code to create the Part" and > the code was, > >#include > >// Factory code for KDE 3 > >typedef KParts::GenericFactory KXMLTreeFactory; > >K_EXPORT_COMPONENT_FACTORY( libkxmltreepart /*library name*/, >KXMLTreeFactory ); > >i would be hapy if any of my friends could explain me what the above > code do... =46rom klibloader.h: # define K_EXPORT_COMPONENT_FACTORY( libname, factory ) \ extern "C" { KDE_EXPORT void *init_##libname() { return new=20 factory; } } That's all. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 3. Ac seo woruld wear=F0 geborod, sw=E1 se Scieppend cw=E6=F0 "Gewurde Unix= " and=20 wundor fremede and him "Unix" genemned, =FE=E6t is se rihtendgesamnung. --nextPart1332222.uTboTTD44S Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBDVHecM/XwBW70U1gRAuwhAJ4+Fxl2P9RXaNHBc4WP5tox6tDnowCcCD5d ukhJDer46FIEkl6umAFH4sU= =gUlE -----END PGP SIGNATURE----- --nextPart1332222.uTboTTD44S-- --===============2067137319== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============2067137319==--