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 3 2861
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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:
...
|
by: aling |
last post by:
Given the bit field struct:
int main()
{
union
{
struct
{
unsigned short s1 : 4;
unsigned short s2 : 3;
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: utab |
last post by:
Dear all,
In programming terminology, what is a wrapper and where is it used?
Regards
|
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...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
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,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |