Results 1 to 3 of 3

Thread: COM and .NET

  1. #1

    Thread Starter
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375

    COM and .NET

    Hi, I have a COM object which I created and used under ASP and VB 6.

    I want to use the same COM object under .NET so I added a reference to it under the VS IDE (Specifying COM).

    When I define a variable and associate it with the COM object I get

    Type 'ProjectName.ClassName' is not defined.

    The 'ProjectName' reference shows up under the references panel in my project.

    I have tried copying the dll to the Bin folder.

    Help appreciated
    Regards
    MarkusJ

  2. #2
    Member
    Join Date
    Jul 2002
    Posts
    39
    open the object browser and have alook at the com object (it should be listed) and check that the namepace and classnames are right,
    Last edited by spike232; Oct 8th, 2002 at 03:20 PM.

  3. #3

    Thread Starter
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375
    Hi, I checked the Object browser and it all seems ok.

    In the object browser tree I have:

    +MyProject
    -Interop.DLLProjectName
    -DllProjectName
    - Classname
    +Microsoft Visual Basic .NET runtime
    + ....

    In my Code I am just going:

    VB Code:
    1. Dim oNewObject as new DllProjectName.ClassName

    I still receive the 'Compiler Error Message: BC30002: Type 'DllProjectName.Classname' is not defined.' error

    Thanks again for your help
    MarkusJ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width