Re: Help with speaker code VB6



On 31 Oct 2005 04:11:33 -0800, "Hugh" <h.a.haggerty@xxxxxxxxxxxxx>
wrote:

>Dear Mike,
>
>I tried your code. It did not work for some reason. I made some notes
>in the code were the err msg occured.
>
Try changing the declare to; Private Declare Function waveOutGetNumDevs
Lib "winmm.dll" () As Long

Also, that declare returns a Long yet you're storing it in an Integer,
and the flags should also be a Long, (Dim ret As Long, flags As Long),
shouldn't make much of a difference but I noticed it was incorrect in
Mike's code :)

--
Alfie
<http://www.delphia.co.uk/>
Programming is an art form that fights back.

.



Relevant Pages

  • Re: Need Help With Run-Time Errors
    ... Explicit and declare every variable. ... Sometimes it crashes, and sometimes it doesn't. ... which tends to be an indication of a corrupt module (but which can be ... that's another reason that I ...
    (microsoft.public.word.vba.general)
  • Re: How do i stop the nonsense postings using my nick?
    ... I was attaching to bless you some of my ... allied frameworks. ... They declare finally if Julie's consultant isn't ... Mike, have a middle-class picture. ...
    (sci.crypt)
  • Re: The wicked untruths of our church leaders
    ... to declare that anyone is a human being. ... What imho would be especially unscientific would be to draw lines without ... I appear to be better acquainted with reason than you on this. ... care whether you think I'm humble or not nor do I care for your suggestion. ...
    (uk.religion.christian)
  • Re: Properties
    ... Is there any reason why this would not work and not simplify the ... Why should I have to declare any variable most of the time? ... The reason you explicitly declare fields used by a property is that the ... compiler needs to know what the code in the property does. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Properties
    ... There is no preprocessor that converts the second into the first. ... do you think it is better to implicitly declare a field, ... I don't see any reason at all that you can't accomplish what you want to, ... the compiler where and what the field being used in the property definition ...
    (microsoft.public.dotnet.languages.csharp)