AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

C++ und Delphi -> Rekursiv Problem

Ein Thema von clues1 · begonnen am 18. Sep 2005 · letzter Beitrag vom 18. Sep 2005
Antwort Antwort
Seite 2 von 2     12   
clues1

Registriert seit: 11. Feb 2004
97 Beiträge
 
#11

Re: C++ und Delphi -> Rekursiv Problem

  Alt 18. Sep 2005, 18:31
HILFE ich blicke nicht mehr durch ???

Dieser Code bricht eher ab als der untere.
Im gegensatz zum oberen habe ich nur die printf Zeilen drin. Hier kommt aber die Meldung siehe "Fehler2.png"
Code:
int FLoadNodes(int id) { 
  int i;
  int c;
 
  i = -1;
  do { 
    i++; // inc
   
    c = LoadNodes(id, 1); // count of the Nodes
    printf("B:");
    printf(itoa(id));
    printf("|");
    printf(itoa(i));
    printf("|");
    printf(itoa(c));
    printf("|");

    if (i < c) { 
      if (ReadNode(i, &NavRes)) { 
         FLoadNodes(NavRes.ID);
         // Saving now the result in a treeview
         // NavRes.ID  <= ID of the entry in the DB (UNIQUE)
         // NavRes.txt  <= Text of the entry in the DB for the caption of the node in a treeview

      } 
    } 
   
    c = LoadNodes(id, 1); // count of the Nodes
    printf("R:");
    printf(itoa(id));
    printf("|");
    printf(itoa(i));
    printf("|");
    printf(itoa(c));
    printf("|");

  } while (! ((c == 0) || (i >= c-1)));
}
hier kommt "Fehler3.png"
Code:
int FLoadNodes(int id) { 
  int i;
  int c;
 
  i = -1;
  do { 
    i++; // inc
   
    c = LoadNodes(id, 1); // count of the Nodes

    if (i < c) { 
      if (ReadNode(i, &NavRes)) { 
         FLoadNodes(NavRes.ID);
         // Saving now the result in a treeview
         // NavRes.ID  <= ID of the entry in the DB (UNIQUE)
         // NavRes.txt  <= Text of the entry in the DB for the caption of the node in a treeview

      } 
    } 
   
    c = LoadNodes(id, 1); // count of the Nodes

  } while (! ((c == 0) || (i >= c-1)));
}

@Dax ; ist egal ob da oder nicht da.
Miniaturansicht angehängter Grafiken
fehler3_189.png   fehler2_997.png  
Meine Easy Database Komponenten[/url] (EDB) Datenbankfuntionen für Delphi Personal/Std und höher. MySQL, MSSQL, Access (JET), Oracle, CSV, TXT, DBase und noch viele mehr. http://www.delphipraxis.net/internal...ct.php?t=37505
  Mit Zitat antworten Zitat
clues1

Registriert seit: 11. Feb 2004
97 Beiträge
 
#12

Re: C++ und Delphi -> Rekursiv Problem

  Alt 18. Sep 2005, 18:49
Ich glaube aber diesmal ist das Problem gelöst.

// Declare all dll functions
typedef bool __stdcall (*POPENDB)(LPTSTR Filename);
typedef int __stdcall (*PLOADNODES)(int id, int ix);

typedef int __stdcall (*PNNN)(int id); number ID

typedef bool __stdcall (*PREADNODE)(int Nr, TNavRes* res); (entry)

hatte ich doch glatt __stdcall vergessen
Aber ich habe wieder einiges gelernt.

Wenn es noch nicht gelöst ist, werde ich mich nochmals melden.
Meine Easy Database Komponenten[/url] (EDB) Datenbankfuntionen für Delphi Personal/Std und höher. MySQL, MSSQL, Access (JET), Oracle, CSV, TXT, DBase und noch viele mehr. http://www.delphipraxis.net/internal...ct.php?t=37505
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:01 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz