Vat tai ACIU zmogau, tikrai tame beda buvo, dabar viskas veikia :) o gal gali pasakyti kuo skiresi ByVal nuo ByRef ? "Laimis" <wiela@centras.lt> wrote in message news:i8jq6k$itm$1@trimpas.omnitel.net... > Valdas rašė: >> 'Public Declare Function SndOpen Lib "aygshell.dll" (ByVal pszSoundFile >> As >> String, ByVal ref As System.IntPtr) As Integer >> >> dim sv as intptr >> >> SndOpen("garsas.wav",sv) >> > > > Public Declare Function SndOpen Lib "aygshell.dll" (ByVal pszSoundFile As > String, *ByRef* phSnd As System.IntPtr) As Integer > > Dim hSnd As IntPtr > > SndOpen("garsas.wav", hSnd) >