🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Linker error

#3816
From: Remy Lebeau (TeamB)
Date: Wed, 26 Apr 2006 18:05
34 lines
2184 bytes
"Jos�" <jose@127.0.0.1> wrote in message
news:6jgu42lmnd7anrv89k6h8uevgnru3qshm2@4ax.com...

> But this time this procedure resulted in another nasty problem:

By default, the VCL's FileCtrl unit is not linked into an application,
because that particular unit is in the wrong VCL library file to begin with.
That is a long-standing problem on Borland's part.  In order to force that
unit to be linked into the application correctly, you have two choices:

1) drop a Win3.1 component onto a form, save the project, and then remove
the component.  The appropriate package references will remain in the
project.

2) edit the project BPR file directly to include the vclx package into the
projet manually.  The actual name of the package file depends on your
version of BCB:

    BCB 1 = ?
    BCB 3 = vclx35.bp*
    BCB 4 = vclx40.bp*
    BCB 5 = vclx50.bp*
    BCB 6 = vclx.bp*
    BDS 2006 = ? (I'll have to look that one up later)

The alternative is to not use SelectDirectory() at all.  Use the Win32 API
SHBrowseForFolder() function directly instead.  But then you have to deal
with other compiler errors if you are using BCB 5 or higher.  To fix those,
you have to add NO_WIN32_LEAN_AND_MEAN to the Conditionals list in the
Project Options dialog.


Gambit
Technical Details
Message-ID: <444fb71b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.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
References: <6jgu42lmnd7anrv89k6h8uevgnru3qshm2@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4288ca169ea4de24
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <6jgu42lmnd7anrv89k6h8uevgnru3qshm2@4ax.com>
Subject: Re: Linker error
Date: Wed, 26 Apr 2006 11:05:40 -0700
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <444fb71b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1146074907 68.69.17.41 (26 Apr 2006 11:08:27 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.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