Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Mac > Re: Think Pasca...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 57 of 149
Post > Topic >>

Re: Think Pascal Build problem

by Phil Taylor <nothere@[EMAIL PROTECTED] > Apr 23, 2004 at 11:15 AM

In article <230420041804484778%anony-mouse@[EMAIL PROTECTED]
>,
Anony-mouse <anony-mouse@[EMAIL PROTECTED]
> wrote:

> In article <230420041613029252%anony-mouse@[EMAIL PROTECTED]
>,
> Anony-mouse <anony-mouse@[EMAIL PROTECTED]
> wrote:
> 

> But now I've got a "Type assignment incompatibility" error in the first
> line of the sound playing procedure.
> 
>    procedure PlaySound;
>    var
>      MySound: Handle;
>      DummyError: OSErr;
>    begin
>      MySound := GetResource('snd ', 128);
>      DummyError := SndPlay(nil, MySound, 0);
>    end;
> 
> It appears to be exactly the same as the example I was copying (with
> minor changes to variable names).

SndPlay takes a SndListHandle, rather than a plain handle.  You should
be able to typecast it like this:

 DummyError := SndPlay(nil, SndListHandle(MySound), 0);

Phil Taylor
 




 5 Posts in Topic:
Think Pascal Build problem
Anony-mouse <anony-mou  2004-04-23 16:13:02 
Re: Think Pascal Build problem
Anony-mouse <anony-mou  2004-04-23 18:04:48 
Re: Think Pascal Build problem
Phil Taylor <nothere@[  2004-04-23 11:15:56 
Re: Think Pascal Build problem
Anony-mouse <anony-mou  2004-04-24 11:14:18 
Re: Think Pascal Build problem
Anony-mouse <anony-mou  2004-04-27 16:09:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 2:28:43 CDT 2008.