Thread View: borland.public.cppbuilder.multimedia
2 messages
2 total messages
Started by Grety
Sat, 19 Feb 2005 10:45
MPEG in Resource file
Author: Grety
Date: Sat, 19 Feb 2005 10:45
Date: Sat, 19 Feb 2005 10:45
5 lines
1056 bytes
1056 bytes
Hi How could I Insert my MPEG File into RES file then I can play my MPEG file from EXE entire. Is it possible? I hope I could be clear :-) thx
Re: MPEG in Resource file
Author: Michel Leunen
Date: Sat, 19 Feb 2005 16:39
Date: Sat, 19 Feb 2005 16:39
32 lines
1831 bytes
1831 bytes
Grety wrote: > How could I Insert my MPEG File into RES file then I can play my MPEG file > from EXE entire. > Is it possible? Yes. Just encode your mpeg file in a RCDATA resource type. Create a .rc file and add this to it: 1 RCDATA "your_MPG.mpg" Add the file to your project. Your file will be added as a resource to your executable at link time. In your .cpp file, you can get your resource back using the following API functions: FindResource() SizeofResource() LoadResource() LockResource() Look in the help files for details. Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads