Article View: borland.public.cppbuilder.multimedia
Article #343Re: MPEG in Resource file
From: 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/ ----------------------------------------
Technical Details
Message-ID:
<42176ba9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.utanet.at!news-hub.siol.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42171920@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,112cd8d1f9fa1dd6 X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 19 Feb 2005 17:39:07 +0100 From: Michel Leunen <nospam@noreply.please> Organization: www.leunen.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: fr-be, en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.multimedia Subject: Re: MPEG in Resource file References: <42171920@newsgroups.borland.com> In-Reply-To: <42171920@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.243.63.151 Message-ID: <42176ba9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108831145 81.243.63.151 (19 Feb 2005 08:39:05 -0800) Lines: 32 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.utanet.at!news-hub.siol.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail