🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: C++ ADO error "Application is not licensed to use this feature"

#1327
From: Dan Chandler
Date: Wed, 18 Aug 2004 20:26
75 lines
3853 bytes
My problem is fixed.  Yu-Chen Hsueh  had the answer:

Your .bpr file doesn't look right.  How did you create the your project?  In
it, under the <LINKER> section, you have the following:

----------
    <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32.lib"/>
----------

The inclusion of cw32.lib normally means that you created a console
application (specifically one that is single threaded and that does not use
the dynamic RTL).  Other information in your .bpr file, such as the presence
of the _NO_VCL define, supports the possibility that this was created as a
console application rather than Win32 GUI application.

The first thing I recommend is to be sure you're creating your project as a
Win32 GUI project:  File | New... | Application.

If that checks out, then see if there a file called default.bpr in the \Bin
directory of your C++Builder installation.  If there is, open it, and see if
it references cw32.lib.  It's possible that your default project file
specifies a console application instead of a Win32 GUI program.  If
default.bpr does refer to cw32.lib, then you can force C++Builder to
generate a new default project file (hopefully an intact one) by either
deleting or renaming the existing default.bpr.

Finally, you can fix the existing .bpr file by opening it in Notepad,
deleting the reference to cw32.lib from the ALLLIB line, and then adding a
reference to either cp32mti.lib (if you are using the dynamic RTL) or
cp32mt.lib (if you are not using the dynamic RTL) in its place.  For
instance, the following line would work:

----------
    <ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cp32mt.lib"/>
----------

After adding that line, save the updated .bpr file, open the project in
C++Builder, rebuild, and it should now work since it's linking in the proper
libraries for a Win32 GU.  Be aware that you must make the modification in
Notepad, or a similar external text editor, in order for it to be retained.

-- YH --


"Dan Chandler" <dan.chandler@jhuapl.edu> wrote in message
news:4123b7a6@newsgroups.borland.com...
>
> I forgot to mention that I'm running under Windows XP with SP1
>
>
> "Dan Chandler" <dan.chandler@jhuapl.edu> wrote in message
> news:4123b6b3$1@newsgroups.borland.com...
> > This post pertains to C++ Builder 6 (patch 4 installed)
> >
> > When I include this line in my code:
> >
> >        TADOTable*    m_ADOtableP = new TADOTable(NULL);
> >
> > my program throws an exception that says "Application is not licensed to
> use
> > this feature."
> > In Project, Options, I made sure I checked the checkbox that says "Build
> > with runtime options"
> > I re-installed BCB6 with a custom installation and selected ALL
features.
> > The problem remains.
> > I got the latest MDAC from Microsoft.   The problem remains.
> >
> > Any ideas?
> >
> > Dan Chandler    (Dan.Chandler@jhuapl.edu)
> >
> >
>
>
Technical Details
Message-ID: <4123bb6d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4123b6b3$1@newsgroups.borland.com> <4123b7a6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,dea388002ad43812
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Dan Chandler" <dan.chandler@jhuapl.edu>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4123b6b3$1@newsgroups.borland.com> <4123b7a6@newsgroups.borland.com>
Subject: Re: C++ ADO error "Application is not licensed to use this feature"
Date: Wed, 18 Aug 2004 16:26:23 -0400
Lines: 77
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 128.244.82.233
Message-ID: <4123bb6d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092860781 128.244.82.233 (18 Aug 2004 13:26:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail