472,784 Members | 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 472,784 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 2822
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 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: ...
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...
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...
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...
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?

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.