473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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
Nov 21 '05 #1
3 2827
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

Nov 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

Nov 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


Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sarah | last post by:
Hello. I am using Microsoft.Office.Interop.Excel in a C# .NET project. I want to open an Excel application with a specific file name. I am currently opening it with this code: ...
3
by: Tee | last post by:
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...
8
by: aling | last post by:
Given the bit field struct: int main() { union { struct { unsigned short s1 : 4; unsigned short s2 : 3;
51
by: jacob navia | last post by:
I would like to add at the beginning of the C tutorial I am writing a short blurb about what "types" are. I came up with the following text. Please can you comment? Did I miss something? Is...
26
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
6
by: Philipp Schmid [MSFT] | last post by:
I am trying to add a Generic Handler (ASHX) to my web site solution. In order to do that I have to specifiy an assembly name in the web.config file. But since 2.0 web sites are no longer...
5
by: Steve Bottoms | last post by:
Hi, all... Trying to determine how to check the state of OpenSubKey when called. What is the return value if the requested subkey doesn't exist?? I try a GetType on the result but only get a...
24
by: Massimo Soricetti | last post by:
Think for a moment: IF you were Bjarne Stroustrup in 1985 (or whenever he were doing it) writing down C++, and knowing all you know NOW of the C++ language, (pro, cons, features of today...
16
by: utab | last post by:
Dear all, In programming terminology, what is a wrapper and where is it used? Regards
4
by: Herman.Schultz | last post by:
Hi, I have a c++ program, and I would like to use a c library (e.g. curl library for http). Where are the things i need to do to use a c library in a c++ program? I read some articles...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.