Article View: borland.public.cppbuilder.nativeapi
Article #3824Re: Linker error
From: JD
Date: Thu, 27 Apr 2006 12:55
Date: Thu, 27 Apr 2006 12:55
40 lines
2071 bytes
2071 bytes
Jos� <jose@127.0.0.1> wrote:
>
> [...] advised me to look in [...] This turned out to be
> pretty complicated,
You seem to be ignoring the archives. When I said that there
was at least one sample that was a component I wasn't kidding.
http://tinyurl.com/mocny
If you click File | New | Unit and save the new unit and then
paste the sample, all you'd have to do is remove the component
specific stuff:
static inline void ValidCtrCheck(TBrowseForFolder *)
{
...
}
and
namespace Browseforfolder
{
...
}
Then to use it, include it's header and dynamically allocate it
just like another other component. Set it's Prompt, Caption,
InitialFolder and RetainSelection properties and use it's
Execute method just like any other dialog.
Note that since it's assigned an Owner, you don't need to
delete it. You can allocate it in the form's constructor
and forget about it until you need to use it.
It should take you 10 minutes tops. Just don't forget to add
NO_WIN32_LEAN_AND_MEAN as noted by Gambit.
~ JD
Technical Details
Message-ID:
<4450bf51$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<6jgu42lmnd7anrv89k6h8uevgnru3qshm2@4ax.com> <444fb71b$1@newsgroups.borland.com> <gar052pvee5ubqnv989tid8vcprkrku2tv@4ax.com> <44507910$1@newsgroups.borland.com> <7tb152h4ell12aahm4hvuuhe77eo42te87@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4288ca169ea4de24 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: Linker error Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 152.163.100.201 X-Forwarded-For: 172.152.201.246 References: <6jgu42lmnd7anrv89k6h8uevgnru3qshm2@4ax.com> <444fb71b$1@newsgroups.borland.com> <gar052pvee5ubqnv989tid8vcprkrku2tv@4ax.com> <44507910$1@newsgroups.borland.com> <7tb152h4ell12aahm4hvuuhe77eo42te87@4ax.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4450bf51$1@newsgroups.borland.com> Date: 27 Apr 2006 05:55:45 -0700 X-Trace: newsgroups.borland.com 1146142545 207.105.83.66 (27 Apr 2006 05:55:45 -0700) Lines: 41 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail