Article View: free.it.visual-basic
Article #1530Re: Gioco in Vbasic
From: Jeremy
Date: Mon, 19 Apr 2004 08:35
Date: Mon, 19 Apr 2004 08:35
21 lines
1685 bytes
1685 bytes
"Andreij" ha scritto:
> Ho l'impressione che questa sia la soluzione definitiva...ma non so
> applicarla.
> Io ho una routine associata al click sull'immagine:partendo da questo, che
> devo fare esattamente?
>
> cmq grato
>
> Andreij
Su un modulo a parte riporti la dichiarazione della funzione:
Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal
lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
Poi sull'evento Click dell'immagine (quello che stai usando) riporti la
chiamata della funzione:
Call PlaySound(App.Path & "\Suono.wav", 0, 1)
Technical Details
Message-ID:
<c6030f$oo6$1@lacerta.tiscalinet.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!draco.tiscalinet.it!not-for-mailReferences:
<HJxgc.70288$hc5.3058313@news3.tin.it> <c5vvju$io9$1@lacerta.tiscalinet.it> <MLLgc.100578$rM4.4009466@news4.tin.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII-7-bit X-Google-Thread: f94ee,cd1e7a28c1a07bce X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2004-04-19 01:35:27 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!draco.tiscalinet.it!not-for-mail From: "Jeremy" <r.casarini@tiscali.it> Newsgroups: free.it.visual-basic Subject: Re: Gioco in Vbasic Date: Mon, 19 Apr 2004 10:35:22 +0200 Organization: Tiscali Spa Lines: 24 Message-ID: <c6030f$oo6$1@lacerta.tiscalinet.it> References: <HJxgc.70288$hc5.3058313@news3.tin.it> <c5vvju$io9$1@lacerta.tiscalinet.it> <MLLgc.100578$rM4.4009466@news4.tin.it> NNTP-Posting-Host: ppp-82-84-246-154.cust-adsl.tiscali.it X-Trace: lacerta.tiscalinet.it 1082363727 25350 82.84.246.154 (19 Apr 2004 08:35:27 GMT) X-Complaints-To: abuse@tiscali.it NNTP-Posting-Date: 19 Apr 2004 08:35:27 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2739.300