Article View: borland.public.cppbuilder.nativeapi
Article #14138Re: Resources Files
From: Rodolfo Frino
Date: Thu, 28 Aug 2003 14:49
Date: Thu, 28 Aug 2003 14:49
41 lines
2237 bytes
2237 bytes
Hola,
Visual C++ 6.0 has also a good Image Editor that works with resouce files
and it is very easy to use.
Via an appropriate Image Editor you need to create, for example, a bitmap
image
and save it into a resouce file. The resource file can contain many bmp
images with different names
and icons.
This is an example of a project that contains a resource file called :
Splash.res. The name of the resource file is arbitrary
(you could have also called ir Bitmap.res, etc)
The resouce file should contain the Splash Bitmap called: SPLASH_BMP. To
add the resource file to the project click on Project, and then Add to
Project..., select the file and click Open.
Usage example in your code
// Load the Splash Screen Bitmap from Splash.res resource file
// into the bitmap object created above.
pBitmap->LoadFromResourceName((unsigned int)HInstance,"SPLASH_BMP");
The complete code is here
http://www.geocities.com/rodolfofrino/SplashScreen.html
Rodolfo
"Salvador Huertas" <shuertasw@ghuertasauto.com> wrote in message
news:3f4db48f@newsgroups.borland.com...
> Hi friends,
> Anybody knows how can I create a resource file (*.res) and how can I
access
> to the icons and images that are inside the file?.
>
> Thanks in advance!!
> Salvador Huertas.
>
>
Technical Details
Message-ID:
<3f4e1639@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f4db48f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,c51e8c7ccf7c7890 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-28 07:53:05 PST From: "Rodolfo Frino" <rodolfofrino@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f4db48f@newsgroups.borland.com> Subject: Re: Resources Files Date: Fri, 29 Aug 2003 00:49:02 +1000 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 203.206.22.106 Message-ID: <3f4e1639@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062082105 203.206.22.106 (28 Aug 2003 07:48:25 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail