Einzelnen Beitrag anzeigen

TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.060 Beiträge
 
Delphi 10.4 Sydney
 
#2

AW: Rückgabe-Pointer PUTF8String aus DLL in String umwandeln?

  Alt 16. Jan 2020, 13:07
Delphi-Quellcode:
  deviceName:=SDL_GetAudioDeviceName(index,0);
  
  
  if Assigned(devicename) then
    result:=UTF8ToString(deviceName^)
  else
    result := '';
Grund:
https://wiki.libsdl.org/SDL_GetAudioDeviceName

Zitat:
Return Value
Returns the name of the audio device at the requested index, or NULL on error.
  Mit Zitat antworten Zitat