|
-
Sep 26th, 2003, 08:09 AM
#1
Thread Starter
Hyperactive Member
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.
-
Sep 26th, 2003, 09:54 AM
#2
Huh? Are you using Visual Basic.NET?
-
Sep 26th, 2003, 09:55 AM
#3
Thread Starter
Hyperactive Member
-
Sep 26th, 2003, 10:05 AM
#4
Addicted Member
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?
-
Sep 26th, 2003, 10:10 AM
#5
Yes when you add the reference make sure you are picking it from the .NET tab and not the COM tab.
-
Sep 26th, 2003, 10:35 AM
#6
Addicted Member
Also, you can't add a reference to standard DLLs, only COM DLLs and .NET assemblies.
-
Sep 26th, 2003, 12:21 PM
#7
Thread Starter
Hyperactive Member
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
-
Sep 26th, 2003, 12:55 PM
#8
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.
-
Sep 26th, 2003, 02:03 PM
#9
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|