Quote Originally Posted by ThBrauner
Hier ein kleines Beispiel zum Abspielen einer Sound- Datei in DF 3.x:

Code:
/bild




Sound Test: ________________________________________________  _____.


/*

use ui

    page bild

    use dll


    external_function PlaySound "PlaySoundA" winmm.dll;
                        string lpszName     ;
                        string lpszModule   ;
                        dword  dwFlags  ;
                        returns dword

    move "c:\winnt\media\tada.wav" to bild.1

    repeat 
        accept bild.1
    loop

keyproc key.escape

    abort


keyproc key.save

    move (PlaySound(bild.1,"",0));
        to bild.2


return
Re-Post aus dem alten DataFlex-Community.de Forum