http://support.microsoft.com/support/kb/articles/Q192/6/93.ASP
I found an article which refers to the problem I am getting, but it is refered to in
Visual FoxPro.
The problem appears to be that the control I want to use; coDBEngine is a design time
control, and not a run time control?.
I do not really follow the resolution given below to fix it.
SYMPTOMS
If you create an application that uses an ActiveX control that you add at run-time
with syntax similar to the following:
THISFORM.AddObject("myctrl","olecontrol","mscomctllib.listviewctrl.2")
Then you build this application into an executable file, create a distribution with
the Setup Wizard, and install your application on other computers, when you attempt to
run code similar to the preceding code you receive an error like the following:
Program Error
OLE error code 0x80040112: Appropriate license for this class not found.
CAUSE
A distribution created with the Visual FoxPro Setup Wizard only allows a run-time
license, while the AddObject method requires a design time license.
RESOLUTION
Add the control you want to use into a class that is saved in a Visual Class library
or into a class created with the DEFINE CLASS command. Next, add an instance of the
class at run-time instead of adding the control. Please see the MORE INFORMATION
section for details.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the
beginning of this article. We are researching this bug and will post new information
here in the Microsoft Knowledge Base as it becomes available
Christopher Crowe (Software Developer)
Microsoft MVP, MCP
Adrock Software
Byte Computer & Software LTD
P.O Box 13-155
Christchurch
New Zealand
Phone/Fax (NZ) 03-3651-112
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Myles
Penlington
Sent: Wednesday, 2 June 1999 11:23
To: '[EMAIL PROTECTED]'
Subject: RE: [DUG]: OLE ERROR - urgent
Pass on the error - But do they have the right version of access installed that
supports this call?, or it (access) may need re-installing if the app works okay on
other machines.
You could try searching for "40112" in the delphi library. I would suspect it is an
Access error, not just a straight COM error.
Join the crowd - I've never had luck in matching a HResult to an actual Error Code -
Always seems to get errors that are not supposed to be returned by the CO/COM
functions.
Myles.
-----Original Message-----
From: Chris Crowe [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, June 02, 1999 10:49 AM
To: Multiple recipients of list Delphi
Subject: [DUG]: OLE ERROR - urgent
I have a person who is using a small app which I wrote to add a field to a Access.MDB
and gets the following error:
Exception EOleSysError in module ADDFIELDTODB.EXE at 0008BC75
OLE error 80040112
Does anyone know what the OLE Error is? I could not find it in my MSDN Library.
It is happening at this point:
Engine := CoDBEngine.Create; //Init DaoEngine
Chris
Christopher Crowe (Software Developer)
Microsoft MVP, MCP
Adrock Software
Byte Computer & Software LTD
P.O Box 13-155
Christchurch
New Zealand
Phone/Fax (NZ) 03-3651-112
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
winmail.dat