Results 1 to 9 of 9

Thread: Adding reference to dll

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    320

    Adding reference to dll

    I tried to add the to System.Windows.Forms.dll and other dlls from the add reference menu, but got an error saying:

    'A reference to System.Windows.Forms.dll could not be added.Converting the type Library to .Net assembly failed. Type Library System_Windows_Forms was exported from a CLR assembly and cannot be re-imported as CLR assembly.'

    Please suggest me is this because of some patches need to be installed or what.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Huh? Are you using Visual Basic.NET?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    320
    Yes I am!

  4. #4
    Addicted Member
    Join Date
    Feb 2002
    Location
    closed
    Posts
    196
    next question is:

    Are you trying out some funky COM interop thing in any area of your project i.e. VB6 does not figure ANYWHERE in what you are doing, right?

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Yes when you add the reference make sure you are picking it from the .NET tab and not the COM tab.

  6. #6
    Addicted Member Sheppe's Avatar
    Join Date
    Sep 2002
    Location
    Kelowna, BC
    Posts
    245
    Also, you can't add a reference to standard DLLs, only COM DLLs and .NET assemblies.
    [vbcode]
    On Error Goto Hell
    [/vbcode]
    Sheppe Pharis, MCSD
    Check out http://www.vb-faq.com
    Click here for access to the free Code-Express source code and component sharing network for VB6
    Want a better way to skin your .NET applications? Click here!

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    320
    Thanks! I was actually trying to set reference from COM dll. Now tell me whats the difference since the name of the dll was same.
    System.Windows.Forms.dll

  8. #8
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    One is a COM version for use in other COM compaint panguages like VB6 and the other is the native .NET assembly for use with .NET.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    320
    Ok! Thanks for info. I've jsut started to learn .NET

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