From kde-devel Mon Sep 08 10:04:36 2003 From: Giuseppe Torelli Date: Mon, 08 Sep 2003 10:04:36 +0000 To: kde-devel Subject: Help on declaring a Kextendedsocket object X-MARC-Message: https://marc.info/?l=kde-devel&m=106301592417168 Hi, How should I declare ks so that I can use it this way: QListViewItemIterator it( Mizio_View->mizio_listview ); while (it.current() ) { KExtendedSocket ks( it.current()->text(0), it.current()->text(1) ); ks.connect(); ++it; } In the header file I have: KExtendedSocket *ks; But the compiler tells me: mizio.cpp:85: request for member `writeBlock' in `this->Mizio::ks', which is of non-aggregate type `KExtendedSocket*' void Mizio::connectionSuccess() { ks.writeBlock ( GET_Request, GET_Request.length() ); <------- here I get the error } Thank you, Giuseppe Torelli >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<