473,396 Members | 1,785 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,396 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 16 '05 #1
3 2521
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 16 '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 16 '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 16 '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: 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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.