🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4419

Re: HInstance of Package

#4419
From: Dennis Jones
Date: Mon, 06 Feb 2006 19:28
20 lines
1625 bytes
"HF" <ola@ola.gr> wrote in message news:43e79f6a@newsgroups.borland.com...
> thanks guys,
>
> No the  code is
> bb->LoadFromResourceName((int)HInstance ,"RES1");
>
> I checked my .exe file with resource editor and doesn't contain the
bitmap.
> Instead the package (bpl) it contains the bitmap.So the problem is why
> during built , final .exe doesn't take the bitmap resource from
package.azny
> idea ?

It's not supposed to.  If you want the bitmap to be in the EXE, you have to
add the resource to the EXE's project.  If the resource is in the package's
project, then you have to load the bitmap from the package, not the EXE.
See my first reply for how to do that.

- Dennis
Technical Details
Message-ID: <43e7a299$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <43e75c95@newsgroups.borland.com> <tf6fu1h9s9onrj42ufffcl79880s3ni630@4ax.com> <43e79cb8$1@newsgroups.borland.com> <43e79f6a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1aa5be8b1f4e1550
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Dennis Jones" <nospam@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <43e75c95@newsgroups.borland.com> <tf6fu1h9s9onrj42ufffcl79880s3ni630@4ax.com> <43e79cb8$1@newsgroups.borland.com> <43e79f6a@newsgroups.borland.com>
Subject: Re: HInstance of Package
Date: Mon, 6 Feb 2006 11:28:47 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 204.200.27.7
Message-ID: <43e7a299$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139253913 204.200.27.7 (6 Feb 2006 11:25:13 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail