From: Sascha Zapf Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer.turbovision Subject: TDirListBox Date: Tue, 17 Aug 1999 23:04:26 +0100 Lines: 58 Distribution: world Message-ID: <37B9DC69.3A742385@netcologne.de> NNTP-Posting-Host: dial-ra-nc4-144.netcologne.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.netcologne.de 934924099 288 195.14.254.144 (17 Aug 1999 21:08:19 GMT) X-Complaints-To: usenet AT news DOT netcologne DOT de NNTP-Posting-Date: 17 Aug 1999 21:08:19 GMT X-Mailer: Mozilla 4.6 [de]C-CCK-MCD QXW0321j (Win95; I) X-Accept-Language: de-DE,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, i try to use TDirListBox in a simple Dialog... But everytime i call newList( dir ) i get a SIGABRT .. Is there somebody who can send me a little Source that works...My Source is void TKoAssApp::Konvert() { TCenterDialog *KonvertDialog = new TCenterDialog( 60, 20, "Konvertieren" ); if( KonvertDialog ) { TScrollBar *ListScroller = new TScrollBar( TRect( 20,2,21,18)); TDirListBox *ListBox = new TDirListBox( TRect( 2,2, 20, 18 ), ListScroller); // Dies nur Testweise, ListBox wird sp„ter Automatisch gefllt TStringCollection *lFileCollection; lFileCollection = new TStringCollection( 20,5 ); lFileCollection->insert( "Feld 1" ); lFileCollection->insert( "Feld 2" ); lFileCollection->insert( "Feld 3" ); lFileCollection->insert( "Feld 4" ); lFileCollection->insert( "Feld 5" ); //ListBox->newList( lFileCollection ); TLabel *ListBoxLabel = new TLabel( TRect( 2,1,20,2 ), "~c~ta - Dateien", ListBox ); KonvertDialog->insert( ListBox ); KonvertDialog->insert( ListScroller ); KonvertDialog->insert( ListBoxLabel ); char StartDir[80]; strcpy("c:\\",StartDir); ListBox->newDirectory( StartDir ); // While this call, the SIGABRT Appaers deskTop->execView( KonvertDialog ); } destroy( KonvertDialog ); } The Line that makes the Signal is in the showDirs method from TDirListBox... Sascha