473,399 Members | 3,888 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,399 software developers and data experts.

Building .tbl

I'm building COM in C# to be used from C++ application. I've read
that C++ client should use Type Library file .tlb. But my solution (of
Class Library) produces only MyCom.dll. So my question is: What should
I do (in VS 2005) to build .tlb file?

Thanks,
Alex

Sep 19 '06 #1
4 4881
Alex,

When you call Regasm.exe to register the .dll file for COM interop, you
will want to run it once with the /tlb switch. This will produce the type
library that you can access from your unmanaged applications.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alex" <al******@hotmail.comwrote in message
news:11*********************@m7g2000cwm.googlegrou ps.com...
I'm building COM in C# to be used from C++ application. I've read
that C++ client should use Type Library file .tlb. But my solution (of
Class Library) produces only MyCom.dll. So my question is: What should
I do (in VS 2005) to build .tlb file?

Thanks,
Alex

Sep 19 '06 #2
Thanks, Nicholas, but after I'd ran:
regasm.exe "mycom.cll" /tlb
nothing happened. There was no any errors, but nothing was produced,
I've searched my whole C drive and could not find anything like
mycom.tbl

Thanks,
Alex
Nicholas Paldino [.NET/C# MVP] wrote:
Alex,

When you call Regasm.exe to register the .dll file for COM interop, you
will want to run it once with the /tlb switch. This will produce the type
library that you can access from your unmanaged applications.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alex" <al******@hotmail.comwrote in message
news:11*********************@m7g2000cwm.googlegrou ps.com...
I'm building COM in C# to be used from C++ application. I've read
that C++ client should use Type Library file .tlb. But my solution (of
Class Library) produces only MyCom.dll. So my question is: What should
I do (in VS 2005) to build .tlb file?

Thanks,
Alex
Sep 19 '06 #3
Alex,

You need to specify the output file name when you use the /tlb option:

regasm.exe "mycom.dll" /tlb:mycom.tlb
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alex" <al******@hotmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Thanks, Nicholas, but after I'd ran:
regasm.exe "mycom.cll" /tlb
nothing happened. There was no any errors, but nothing was produced,
I've searched my whole C drive and could not find anything like
mycom.tbl

Thanks,
Alex
Nicholas Paldino [.NET/C# MVP] wrote:
>Alex,

When you call Regasm.exe to register the .dll file for COM interop,
you
will want to run it once with the /tlb switch. This will produce the
type
library that you can access from your unmanaged applications.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alex" <al******@hotmail.comwrote in message
news:11*********************@m7g2000cwm.googlegro ups.com...
I'm building COM in C# to be used from C++ application. I've read
that C++ client should use Type Library file .tlb. But my solution (of
Class Library) produces only MyCom.dll. So my question is: What should
I do (in VS 2005) to build .tlb file?

Thanks,
Alex

Sep 19 '06 #4
Nicholas:

Thaaaaaank youuuuuuuu soooo muuuuuch!

You were right to the point! Everything is fine now!

Alex
Nicholas Paldino [.NET/C# MVP] wrote:
Alex,

You need to specify the output file name when you use the /tlb option:

regasm.exe "mycom.dll" /tlb:mycom.tlb
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alex" <al******@hotmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Thanks, Nicholas, but after I'd ran:
regasm.exe "mycom.cll" /tlb
nothing happened. There was no any errors, but nothing was produced,
I've searched my whole C drive and could not find anything like
mycom.tbl

Thanks,
Alex
Nicholas Paldino [.NET/C# MVP] wrote:
Alex,

When you call Regasm.exe to register the .dll file for COM interop,
you
will want to run it once with the /tlb switch. This will produce the
type
library that you can access from your unmanaged applications.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alex" <al******@hotmail.comwrote in message
news:11*********************@m7g2000cwm.googlegrou ps.com...
I'm building COM in C# to be used from C++ application. I've read
that C++ client should use Type Library file .tlb. But my solution (of
Class Library) produces only MyCom.dll. So my question is: What should
I do (in VS 2005) to build .tlb file?

Thanks,
Alex
Sep 19 '06 #5

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

Similar topics

0
by: PatchFactory Support | last post by:
Description: Professional and easy-to-use patch building environment that can help you to create instant patch packages for software and file updating. Generated patch packages are small size...
9
by: Jenta | last post by:
A World Beyond Capitalism 2005, An Annual International Multiracial Alliance Building Peace Conference Is Accepting Proposals... ...and Online Registration is now available if you plan to table...
3
by: DrSarang | last post by:
While building XmlSampleGenerator code from MSDN, I get missing XmlSchemaSet reference. Here is the screen dump, if needed. C:\Documents and Settings\Dr Sarang\My Documents\MSDN\XML Sample...
1
by: Kelly B. | last post by:
Hello I've created a customer database for the company I work for. Now I've started on building a work order, which will be related to It. Basically, I need to build a form to accept shirt size...
17
by: Nick | last post by:
I am doing some research into building web applications using Object Oriented techniques. I have found the excellent patterns section on the MSDN site, but other than that I cannot find any good,...
3
by: thomson | last post by:
Hi All, While Iam building my solution, the VS 2003 editor get stucked, for a few minutes and after sometimes it gets recovered, and the solution building done, While building i looked into the...
3
by: tony | last post by:
Hello!! I use VS 2003 and C# for all class library except MeltPracCommon.dll which is C++.NET The problem is that I get these warnings when building the exe file and use my class libraries....
2
by: Gawel | last post by:
Hajo, I have soulutin with 7 library projects and 2 web projects. When I change something in one of the libraries and hit F5 it takes literally 1-2 minutes to start an application. I've...
0
by: s | last post by:
I need to develop a multiuser database application to be used by four people(The number of users are not likely to increase). It is for storing records of different versions of particular papers. I...
13
by: treble54 | last post by:
I need to build PHP from source with the pdo_ibm extension and I am having an issue with it. Firstly, I am using Visual Studio .NET 2003 and I am building PHP from source through the Visual Studio...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.