Einzelnen Beitrag anzeigen

Vjay

Registriert seit: 2. Dez 2003
Ort: Berlin/Eschede
481 Beiträge
 
Delphi 7 Professional
 
#2

Re: [C] Zeichenfolge aus Funktion zurückgeben

  Alt 13. Sep 2006, 10:02
Benutzt du dort den GNU-C Compiler?

Mh, ohne jetzt eine genaue Ahnung zu haben, würde ich versuchen einen pChar zurückzugeben.

Grad mal in die Hilfe zu FormatMessage geguckt:

Zitat:
pBuffer

Points to a buffer for the formatted (and null-terminated) message. If dwFlags includes FORMAT_MESSAGE_ALLOCATE_BUFFER, the function allocates a buffer using the LocalAlloc function, and places the address of the buffer at the address specified in lpBuffer.
Denke ich weiss worauf du hinaus willst, aber Standard-C hat nicht die Super-Delphi-Stringbehandlung.
Wer später bremst ist eher tot.
  Mit Zitat antworten Zitat