Intellisense and COM

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Vera (anonymous_at_discussions.microsoft.com)
Date: 02/17/04


Date: Tue, 17 Feb 2004 00:41:06 -0800

I have the following coded elements:
1. An interface
2. A baseclass implementing the interface
3. A subclass that inherits the baseclass and contains some extra properties and methods

I use my subclass through COM, in this case in Access2003.

Now, if I declare a variable x As mySubClass, then on typing "x." Intellisense shows me nothing.
If I declare a variable x As myBaseClass, then on typing "x." Intellisense still shows me nothing.
If I declare a variable x As myInterface, then instantiate x = new myBaseClass, then on typing "x." Intellisense shows me the properties and methods in the interface. The same thing happens if I instantiate x = new mySubClass. However, in that case I still cannot see the properties and methods that are specific to the derived class.

What I want to have happen is the following: On instantiating x As mySubClass, I want Intellisense to show me ALL the public properties and methods that mySubClass has available, the inherited ones and the new ones.

How can I get this done?

Any help will be very much appreciated!

Vera



Relevant Pages

  • Re: Creating a derived object from a base object
    ... I don't want to write a separate MyString ToUpper method when String ... subclass object thru a baseclass reference will use the *old* methods. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Creating a derived object from a base object
    ... subclass object thru a baseclass reference will use the *old* methods. ... public class SubClass: BaseClass { ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: CLOS question
    ... Scott Burson writes: ... to define a class d that inherits c, and have instances of d behave ... It would seem that D is not really a subclass of C if you don't want ... in writing some software for part of an AI programming course. ...
    (comp.lang.lisp)
  • Re: class.class = class
    ... So Object and Module are instances of a subclass of themselves, ... inherits from Kernel, which is a Module, a subclass of Object. ... Module is a type of Object that stores Methods. ... Kernel is an *instance* of Module that stores the core methods common to ...
    (comp.lang.ruby)
  • Re: Matlabs OOP and object concatenation
    ... you would also need to write overloaded horzcat() and/or vertcatmethods ... In these methods, you could call the BaseClass() converter functions to convert all the horzcat arguments to the BaseClass, at which point you could concatenate them. ... all of this assumes you're happy to lose subclass information when you do a concatenation operation. ...
    (comp.soft-sys.matlab)