471,349 Members | 1,309 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

what is type library?

Tee
Hi guys,

I have a problem with my VS project, it keeps saying COM Interop
registration failed. Could not find a type library for assembly 'Class1'.
If I choose to continue, everything still work fine.

If I type regasm class1.dll /tlb, it will create a .tlb file and solve the
problem, but this file will run into the VS setup project 'detected
dependencies' too, I dont want to include this file as basically I think it
is not needed (as I can get my project working fine without register the
tlb, but it just keep giving error in VS).
I could be wrong on this, but can anyone tell me what is type library, and
what is it for?
Or is there a better solution for this?

Note: I have few projects in 1 solution, all are C#, only 1 is VB, and only
this VB project is giving this COM Interop registration failed problem.
Thanks,
Tee
Jul 21 '05 #1
3 2766
Hi,

Make sure the class is marked as comvisible.

http://msdn.microsoft.com/library/de...classtopic.asp

Ken
-----------------
"Tee" <th*@streamyx.com> wrote in message
news:Oi**************@TK2MSFTNGP15.phx.gbl...
Hi guys,

I have a problem with my VS project, it keeps saying COM Interop
registration failed. Could not find a type library for assembly 'Class1'.
If I choose to continue, everything still work fine.

If I type regasm class1.dll /tlb, it will create a .tlb file and solve the
problem, but this file will run into the VS setup project 'detected
dependencies' too, I dont want to include this file as basically I think it
is not needed (as I can get my project working fine without register the
tlb, but it just keep giving error in VS).
I could be wrong on this, but can anyone tell me what is type library, and
what is it for?
Or is there a better solution for this?

Note: I have few projects in 1 solution, all are C#, only 1 is VB, and only
this VB project is giving this COM Interop registration failed problem.
Thanks,
Tee

Jul 21 '05 #2
Tee
Hi Ken,

Thanks a lot!
This solved the problem.

Anyway I am still looking for more information about type library, like what
is it for. It would be glad if you can show me some URL about it, I have
tried look for it, but too many non-relevant result from those search
engine, and MSDN as well...

Thanks a lot.
Tee
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:u7**************@TK2MSFTNGP10.phx.gbl...
Hi,

Make sure the class is marked as comvisible.

http://msdn.microsoft.com/library/de...classtopic.asp
Ken
-----------------
"Tee" <th*@streamyx.com> wrote in message
news:Oi**************@TK2MSFTNGP15.phx.gbl...
Hi guys,

I have a problem with my VS project, it keeps saying COM Interop
registration failed. Could not find a type library for assembly 'Class1'.
If I choose to continue, everything still work fine.

If I type regasm class1.dll /tlb, it will create a .tlb file and solve the
problem, but this file will run into the VS setup project 'detected
dependencies' too, I dont want to include this file as basically I think it is not needed (as I can get my project working fine without register the
tlb, but it just keep giving error in VS).
I could be wrong on this, but can anyone tell me what is type library, and
what is it for?
Or is there a better solution for this?

Note: I have few projects in 1 solution, all are C#, only 1 is VB, and only this VB project is giving this COM Interop registration failed problem.
Thanks,
Tee

Jul 21 '05 #3
A COM type library is something that describes the COM objects held in a
DLL. Sometimes it is compiled into the DLL, somethimes it is separate (in a
TLB file). If you google "Type Library", at the very least the first 3 pages
are mostly relevant to some degree or another.

"Tee" <th*@streamyx.com> wrote in message
news:ew**************@TK2MSFTNGP12.phx.gbl...
Hi Ken,

Thanks a lot!
This solved the problem.

Anyway I am still looking for more information about type library, like
what
is it for. It would be glad if you can show me some URL about it, I have
tried look for it, but too many non-relevant result from those search
engine, and MSDN as well...

Thanks a lot.
Tee
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:u7**************@TK2MSFTNGP10.phx.gbl...
Hi,

Make sure the class is marked as comvisible.

http://msdn.microsoft.com/library/de...classtopic.asp

Ken
-----------------
"Tee" <th*@streamyx.com> wrote in message
news:Oi**************@TK2MSFTNGP15.phx.gbl...
Hi guys,

I have a problem with my VS project, it keeps saying COM Interop
registration failed. Could not find a type library for assembly 'Class1'.
If I choose to continue, everything still work fine.

If I type regasm class1.dll /tlb, it will create a .tlb file and solve
the
problem, but this file will run into the VS setup project 'detected
dependencies' too, I dont want to include this file as basically I think

it
is not needed (as I can get my project working fine without register the
tlb, but it just keep giving error in VS).
I could be wrong on this, but can anyone tell me what is type library,
and
what is it for?
Or is there a better solution for this?

Note: I have few projects in 1 solution, all are C#, only 1 is VB, and

only
this VB project is giving this COM Interop registration failed problem.
Thanks,
Tee


Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

51 posts views Thread by jacob navia | last post: by
26 posts views Thread by Lasse Edsvik | last post: by
3 posts views Thread by Tee | last post: by
6 posts views Thread by Philipp Schmid [MSFT] | last post: by
24 posts views Thread by Massimo Soricetti | last post: by
16 posts views Thread by utab | last post: by
4 posts views Thread by Herman.Schultz | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.