Click here to Skip to main content
15,919,879 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionRe: "'string' does not name a type"? Pin
Lord Kixdemp9-Sep-05 16:42
Lord Kixdemp9-Sep-05 16:42 
AnswerRe: "'string' does not name a type"? Pin
Michael Dunn9-Sep-05 20:09
sitebuilderMichael Dunn9-Sep-05 20:09 
GeneralRe: "'string' does not name a type"? Pin
Lord Kixdemp10-Sep-05 5:50
Lord Kixdemp10-Sep-05 5:50 
QuestionC++ Metrics suite Pin
Member 21064129-Sep-05 9:38
Member 21064129-Sep-05 9:38 
QuestionList of all Files in my Directory Pin
i-p-g-i9-Sep-05 6:10
i-p-g-i9-Sep-05 6:10 
AnswerRe: List of all Files in my Directory Pin
Anonymous10-Sep-05 0:40
Anonymous10-Sep-05 0:40 
GeneralRe: List of all Files in my Directory Pin
i-p-g-i11-Sep-05 21:33
i-p-g-i11-Sep-05 21:33 
GeneralRe: List of all Files in my Directory Pin
i-p-g-i11-Sep-05 23:01
i-p-g-i11-Sep-05 23:01 
Wink | ;) Hello, found a solution.

using System;
using System.IO;
using System.Collections;

namespace sharpsite
{
///
/// Zusammenfassungsbeschreibung für DirSearcher.
///

public class DirSearcher {

private string fSourceDirectory = String.Empty;
private string fExtensions = String.Empty;

public ArrayList Files = new ArrayList;

public string SourceDirectory {
get { return fSourceDirectory; }
set { fSourceDirectory = value; }
}

public string Extensions {
get {
if (fExtensions == String.Empty)
fExtensions = "*.*";
return fExtensions;
}
set { fExtensions = value; }
}

public DirSearcher() { }

public DirSearcher(string sourceDir) {

this.SourceDirectory = sourceDir;

}


///
/// Sucht alle Dateien mit den gegebenen Erweiterungen aus dem angegebenen Verzeichnis
///

/// <param name="baseDir" />Suchverzeichnis
private void FindFiles(DirectoryInfo baseDir) {

try {
string[] exts;
exts = this.Extensions.Split(';');

//Dateien suchen
foreach (string ext in exts) {
foreach (FileInfo theFile in baseDir.GetFiles(ext)) {
Files.Add(theFile);
}
}
}
catch { return; }
}


///
/// Durchsucht alle Verzeichnisse rekursiv und ruft FindFiles für jedes Verzeichnis auf
///

/// <param name="baseDir" />Basisverzeichnis
private void FindAllFiles(DirectoryInfo baseDir) {

try {
FindFiles(baseDir);
//Verzeichnisse rekursiv durchsuchen
foreach (DirectoryInfo subDir in baseDir.GetDirectories()) {
FindAllFiles(subDir);
}
}
catch { return; }
}


///
/// Die eigentliche Suchroutine - Aufruf aus dem Hauptprogramm
///

/// <param name="searchSubDirectories" />Unterverzeichnisse durchsuchen?
public void SearchFiles(bool searchSubDirectories) {

this.Files.Clear();
DirectoryInfo di = new DirectoryInfo(SourceDirectory);
if (searchSubDirectories)
FindAllFiles(di);
else
FindFiles(di);
}
}
}
Questionsnmp Pin
sebastianos8-Sep-05 15:32
sebastianos8-Sep-05 15:32 
QuestionPLEASE HELP I NEED MATRIX LIBRARY!! Pin
BenPage8-Sep-05 8:10
BenPage8-Sep-05 8:10 
AnswerRe: PLEASE HELP I NEED MATRIX LIBRARY!! Pin
Christian Graus8-Sep-05 13:47
protectorChristian Graus8-Sep-05 13:47 
GeneralRe: PLEASE HELP I NEED MATRIX LIBRARY!! Pin
Lord Kixdemp9-Sep-05 11:14
Lord Kixdemp9-Sep-05 11:14 
GeneralRe: PLEASE HELP I NEED MATRIX LIBRARY!! Pin
Christian Graus11-Sep-05 11:34
protectorChristian Graus11-Sep-05 11:34 
GeneralRe: PLEASE HELP I NEED MATRIX LIBRARY!! Pin
Lord Kixdemp11-Sep-05 14:34
Lord Kixdemp11-Sep-05 14:34 
GeneralRe: PLEASE HELP I NEED MATRIX LIBRARY!! Pin
Christian Graus11-Sep-05 14:38
protectorChristian Graus11-Sep-05 14:38 
GeneralRe: PLEASE HELP I NEED MATRIX LIBRARY!! Pin
Lord Kixdemp11-Sep-05 15:36
Lord Kixdemp11-Sep-05 15:36 
Questioncrahses and memory issues adding clibborad and new file data Pin
8-Sep-05 3:10
suss8-Sep-05 3:10 
Questionmemory issues when i opening the dialog box Pin
8-Sep-05 0:59
suss8-Sep-05 0:59 
AnswerRe: memory issues when i opening the dialog box Pin
MailtoGops8-Sep-05 3:11
MailtoGops8-Sep-05 3:11 
GeneralRe: memory issues when i opening the dialog box Pin
bujji_bec8-Sep-05 19:28
bujji_bec8-Sep-05 19:28 
QuestionI want Doubly linked list in c++ source code Pin
Member 22586158-Sep-05 0:39
Member 22586158-Sep-05 0:39 
AnswerRe: I want Doubly linked list in c++ source code Pin
Manfred Staiger8-Sep-05 1:19
Manfred Staiger8-Sep-05 1:19 
AnswerRe: I want Doubly linked list in c++ source code Pin
Member 219796611-Sep-05 21:53
Member 219796611-Sep-05 21:53 
Questionhelp Pin
lotsoffun7-Sep-05 23:07
lotsoffun7-Sep-05 23:07 
AnswerRe: help Pin
Christian Graus8-Sep-05 12:22
protectorChristian Graus8-Sep-05 12:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.