Re: ADO in D2005

From: Jeff Dyer (jeff.nospam_at_trustguard.co.uk)
Date: 12/14/04


Date: Tue, 14 Dec 2004 14:41:17 -0000


"Bill Todd" <no@no.com> wrote in message
news:41bef8c2@newsgroups.borland.com...
> On the contrary, unlike what Microsoft has done to their VB
> programmers, Borland has provided a way to move Win32 apps to .NET.
> Although not painless it is a big help. You will also find most of what
> you know about Delphi is quite portable. You just happened to look at
> the area that has the biggest change and that is data access. ADO.NET
> is quite different from anything you have worked with before. It is
> conceptually similar to DataSnap (Midas).

Maybe you can help me with this one then ...

Fire up D2005 (Architect Trial)

Select File | New Windows Forms Application

There is immediately a message in the "Messages" pane at the bottom of the
screen that I cannot read, *because it doesn't wrap around my screen*.
Rightclick/copying it here gives :

Could not find type 'WinForm.Container'. Please make sure that the assembly
that contains this type is referenced. If this type is a part of your
development project, make sure that the project has been successfully built.

Next, look for TADOConnection. Doesn't exist anywhere. Fire up Component |
Installed .NET compoonents ....

Eventually!!! A huge list of components appears, with check boxes down the
left I assume that, like VB, not all components are "enabled" by default.

Scroll to TADOConnection (General components), tick all TADOQuery etc and
close the dialog. A new tab appears in the Tool palette, "General".

Click on TADOConnection, drop on form, voila : Error

Failed to create an instance of 'Borland.Vcl.TADOConnection' because
'System.MissingMethodException: Constructor on type
Borland.Vcl.TADOConnection not found.
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
   at Borland.Studio.Host.CreationManager.a(Type , Object[] , Type[] ,
Boolean )'.

I mean what am I doing wrong?

Regards,

--
Jeff Dyer


Relevant Pages

  • Re: SecurityException: Request Failed on CreateInstanceAndUnwrap
    ... at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder ... binder, Objectargs, CultureInfo culture, ObjectactivationAttributes) ... Binder binder, Objectargs, CultureInfo culture, Object ... at System.Activator.CreateInstance(String assemblyName, String typeName, ...
    (microsoft.public.dotnet.security)
  • EIF and Web Serivces
    ... y parameters, EventSource eventSource) ... invokeAttr, Binder binder, Objectparameters, CultureInfo culture, Boolean ... at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder ...
    (microsoft.public.vsnet.enterprise.tools)
  • TypeDelegator ArgumentException
    ... at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder ... binder, Objectargs, CultureInfo culture, ObjectactivationAttributes) ... Binder binder, Objectargs, CultureInfo culture, Object ...
    (microsoft.public.dotnet.framework.remoting)
  • MSExchangeOMA 1507 on SBS2003
    ... On an single SBS2003 system, i.e. domain controller, exchange server etc.. ... invokeAttr, Binder binder, Objectparameters, CultureInfo culture, Boolean ... at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder ...
    (microsoft.public.exchange.admin)
  • OMA on Exchange 2003 - Event ID 1507
    ... I am experiencing a problem logging onto OMA after installing Windows 2003 ... All local machines and the server point to the server for DNS. ... invokeAttr, Binder binder, Objectparameters, CultureInfo culture, Boolean ...
    (microsoft.public.exchange.applications)