Einzelnen Beitrag anzeigen

Susanne

Registriert seit: 21. Mai 2004
Ort: Lage
232 Beiträge
 
Delphi 2005 Professional
 
#5

Re: Variablenübergabe C-Programm an Delphi dll - Probleme

  Alt 23. Jan 2007, 15:37
das sollte in dem Aufruf natürlich auch notiztx heissen

wenn ich die Aufruf in dieser Reihenfolge nacheinander aufrufe - dann kommt in der Dll notiztx an
Code:
//von RFC_CHAR nach CHAR umwandeln
  GETCHAR(*iIArchivDocId, docId);
  GETCHAR(*iIArchivId, arcId);


  //die Tabelle auslesen
  for (crow = 1;crow <= ItFill(thItNotiz); crow++) { 
   
    lpt = (char *) ItGetLine(thItNotiz, crow);
    len = strlen(lpt)+1;

    memcpy( notiztx, (char *) ItGetLine( thItNotiz, crow ), len);
    notiztx[len] = '\0';
  }

wenn ich die Aufruf in dieser Reihenfolge nacheinander aufrufe - dann kommt in der Dll docid und arcid an
Code:
  //die Tabelle auslesen
  for (crow = 1;crow <= ItFill(thItNotiz); crow++) { 
   
    lpt = (char *) ItGetLine(thItNotiz, crow);
    len = strlen(lpt)+1;

    memcpy( notiztx, (char *) ItGetLine( thItNotiz, crow ), len);
    notiztx[len] = '\0';
  }

  //von RFC_CHAR nach CHAR umwandeln
  GETCHAR(*iIArchivDocId, docId);
  GETCHAR(*iIArchivId, arcId);
Aber egal wie rum nun, es kommen nie alle drei an.
Susanne
  Mit Zitat antworten Zitat