Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Delphi 5 embedded WAV
All,

I am wondering if there is a way of embedding .WAV, or any multimedia files
into the Delphi 5 program.

I am using the media player tool, however it always wants a file.  I would
like to compile the sound files into my delphi exe.

Any suggestions?

Thanks,
Rob
robert.duchene@rogers.com



Report this thread to moderator Post Follow-up to this message
Old Post
Robert Duchene
05-05-05 09:00 AM


Re: Delphi 5 embedded WAV
Robert Duchene wrote:
> All,
>
> I am wondering if there is a way of embedding .WAV, or any multimedia file
s
> into the Delphi 5 program.
>
> I am using the media player tool, however it always wants a file.  I would
> like to compile the sound files into my delphi exe.
>
> Any suggestions?
>
> Thanks,
> Rob
> robert.duchene@rogers.com
>
>
you can use the Playsound Api call and use the resource option
to play sound from your resource of the EXE file.
you can add the resource as a RAW data type. "RT_RAW"
in the Recourse you need to specify the name of the
resource which you create, the type which is RT_RAW and the
filename path from where it is.
at build time of y9our app, it will get compiled into the
resource of your app.
in your app you need to use the resource functions to find and
obtain the handle to it, then pass it to the Playsound function as a
resource which it will then simply play it, or you could read it from
resource into some fixed memory and still use the Playsound to play it.
etc..



Report this thread to moderator Post Follow-up to this message
Old Post
Jamie
05-06-05 09:01 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Delphi archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:35 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.