Creating a object of a wrapper dll class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sm

    Creating a object of a wrapper dll class

    Hi,

    What is the syntax to create an instance of a class present in a wrapper dll?

    Thanks in advance
  • Herfried K. Wagner [MVP]

    #2
    Re: Creating a object of a wrapper dll class

    "sm" <sm@discussions .microsoft.com> schrieb:[color=blue]
    > What is the syntax to create an instance of a class present
    > in a wrapper dll?[/color]

    What wrapper DLL?

    --
    Herfried K. Wagner [MVP]
    <URL:http://dotnet.mvps.org/>

    Comment

    • sm

      #3
      Re: Creating a object of a wrapper dll class


      I mean the wrapper dll which is created automatically when a COM object is
      dropped on to a form.

      I am want to use the COM control in a console application. I copied the
      wrapper dlls created in a windows application to the obj directory in the
      console application. The bottom line is I need to access the members of the
      control.

      Don't know how to go about it...any help would be greatly appreciated.

      Thanks.

      "Herfried K. Wagner [MVP]" wrote:
      [color=blue]
      > "sm" <sm@discussions .microsoft.com> schrieb:[color=green]
      > > What is the syntax to create an instance of a class present
      > > in a wrapper dll?[/color]
      >
      > What wrapper DLL?
      >
      > --
      > Herfried K. Wagner [MVP]
      > <URL:http://dotnet.mvps.org/>
      >[/color]

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Creating a object of a wrapper dll class

        "sm" <sm@discussions .microsoft.com> schrieb:[color=blue]
        > I mean the wrapper dll which is created automatically when a COM object is
        > dropped on to a form.
        >
        > I am want to use the COM control in a console application. I copied the
        > wrapper dlls created in a windows application to the obj directory in the
        > console application. The bottom line is I need to access the members of
        > the
        > control.[/color]

        Did you try to instantiate the classes exposed by the wrapper DLL? It's
        very similar to working with normal .NET classes.

        --
        Herfried K. Wagner [MVP]
        <URL:http://dotnet.mvps.org/>

        Comment

        • sm

          #5
          Re: Creating a object of a wrapper dll class


          An attempt to intiantiate the class exposed by the wrapper dll, shows syntax
          error on the class exposed!

          After adding a reference to the dlls. I have the following code:

          Imports AxabcOCX

          Module Module1
          Friend WithEvents Axabc1 As New AxabcCX.Axabc
          ....
          ....
          End Module

          The above shows error on AxabcCX.Axabc


          "Herfried K. Wagner [MVP]" wrote:
          [color=blue]
          > "sm" <sm@discussions .microsoft.com> schrieb:[color=green]
          > > I mean the wrapper dll which is created automatically when a COM object is
          > > dropped on to a form.
          > >
          > > I am want to use the COM control in a console application. I copied the
          > > wrapper dlls created in a windows application to the obj directory in the
          > > console application. The bottom line is I need to access the members of
          > > the
          > > control.[/color]
          >
          > Did you try to instantiate the classes exposed by the wrapper DLL? It's
          > very similar to working with normal .NET classes.
          >
          > --
          > Herfried K. Wagner [MVP]
          > <URL:http://dotnet.mvps.org/>
          >
          >[/color]

          Comment

          Working...