🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2607

Re: Lionker error when using _Collection.Count property

#2607
From: Mike Ruskai
Date: Wed, 23 Apr 2003 00:48
54 lines
2425 bytes
On Tue, 22 Apr 2003 14:18:46 -0400, Edward Diener wrote:

>After picking up the Adoint::_di_Properties for a TADOConnection, I try to
>get the count of the properties using the Count VCL property of the
>collection. Compiles fine but when I link I get:
>
>"[Linker Error] Unresolved external 'System::__linkproc__ __fastcall
>CheckAutoResult()' referenced from C:\PROGRAM
>FILES\BORLAND\CBUILDER6\LIB\DEBUG\VCLE.LIB|syssupp"
>
>What import library do I have to add in order to resolve this linking
>problem ?

There is none.  That function was erroneously linked into a library by
Borland, and is not included in the compiler.

The workaround is to create it yourself, most usefully in a separate unit
file that you can include in a project whenever the need arises:

[file SysFix.h - name it anything you want]
#ifndef SysFixH
#define SysFixH
//---------------------------------------------------------------------------

#include <windows.hpp>

extern "C"
{
void __fastcall CheckSafecallResult(HRESULT hr);
}

#endif
 
[file SysFix.cpp]
#pragma hdrstop
#include <ComObj.hpp>

#include "SysFix.h"

#pragma package(smart_init)

namespace System
{
    void __fastcall CheckSafecallResult(HRESULT hr)
    {
    OleCheck(hr);
    }
}


--
 - Mike

Remove 'spambegone.net' and reverse to send e-mail.
Technical Details
Message-ID: <gunaalqrneguyvaxarg.hdru980.pminews@207.105.83.65>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ea586d5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,46b82a3e4cd2c8eb
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-04-22 17:51:50 PST
Newsgroups: borland.public.cppbuilder.database.ado
From: "Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net>
Message-ID: <gunaalqrneguyvaxarg.hdru980.pminews@207.105.83.65>
References:  <3ea586d5$1@newsgroups.borland.com>
Date: Tue, 22 Apr 2003 20:48:44 -0400 (EDT)
Reply-To: "Mike Ruskai" <spamten.knilhtrae@begonedynnaht.net>
X-Newsreader: PMINews 2.00.1205 For OS/2
Organization: TLF
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Subject: Re: Lionker error when using _Collection.Count property
NNTP-Posting-Host: 65.41.80.215
X-Trace: newsgroups.borland.com 1051058924 65.41.80.215 (22 Apr 2003 17:48:44 -0700)
Lines: 56
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail