473,412 Members | 2,081 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,412 software developers and data experts.

.tlb file question

i used regasm to make my vb.net control a tlb file...how can i add it to like
my c++ form? i used regasm and made it to a .tlb file but when i try to add
it to the toolbox it gives an error....what am i doing wrong?
--
-iwdu15
Jan 3 '06 #1
5 2396
you use regasm with the /tlb option to create a tlb file which is then added
to the registry.
in your C++ application, add a reference to it by right clicking on your
references item.
you can then select the component in the COM list.

to add it to your toolbox, right-click on the components tab, and select the
control from the COM list.

kind regards,
Bruno.
"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:13**********************************@microsof t.com...
i used regasm to make my vb.net control a tlb file...how can i add it to
like
my c++ form? i used regasm and made it to a .tlb file but when i try to
add
it to the toolbox it gives an error....what am i doing wrong?
--
-iwdu15

Jan 3 '06 #2
i did that and i got an error saying it waasnt recognized when trying to add
it to the toolbox, and another erro when trying to add a reference...i used
regasm with the /tlb option and have a .tlb file all set
--
-iwdu15
Jan 4 '06 #3
i reread your original post, and am a little confused.
did you try to register the control itself, or did you build it into a
managed dll or an ActiveX dll?

you cannot directly register a control itself.
you have to build a dll that contains the control.

you then register the dll, used either regasm if you built a .NET dll, or
regsvr32 if you built an ActiveX dll.

after that you can add a reference to the control as i described earlier.

kind regards,
Bruno.

"iwdu15" wrote:
i did that and i got an error saying it waasnt recognized when trying to add
it to the toolbox, and another erro when trying to add a reference...i used
regasm with the /tlb option and have a .tlb file all set
--
-iwdu15

Jan 4 '06 #4
i registered the .net control using the "regasm /tlb" command in the command
prompt. i built a "Visual Basic Control Library" project and when it compiled
into a dll, i used the regasm /tlb command in the command prompt to register
it and create a .tlb file. when i try and use that either by referencing it
or by adding it to the toolbox, i get an error
--
-iwdu15

Jan 4 '06 #5
look at the thread 2 messages below this one, titled 'using C# dll as
COM'.
maybe you have to register your component using gacutil before using regasm,
even though i wouldn't know why, because it works without doing that on my
system.
maybe something to do with the actual control or the code behind it?

kind regards,
Bruno.

"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
i registered the .net control using the "regasm /tlb" command in the
command
prompt. i built a "Visual Basic Control Library" project and when it
compiled
into a dll, i used the regasm /tlb command in the command prompt to
register
it and create a .tlb file. when i try and use that either by referencing
it
or by adding it to the toolbox, i get an error
--
-iwdu15

Jan 5 '06 #6

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

Similar topics

11
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own...
1
by: Marc Cromme | last post by:
I would like to ask a question about (good ?) style and possibilities in mixing C FILE* and C++ file streams. The background is that I want to use the C libpng library from within C++, but I...
21
by: siroregano | last post by:
Hi Everyone- I'm new to this group, and almost-as-new to asking programming questions publicly, so please forgive me if I miss a convention or two! I have a text file, around 40,000 lines...
9
by: CGW | last post by:
I asked the question yesterday, but know better how to ask it, today: I'm trying to use the File.Copy method to copy a file from a client to server (.Net web app under IIS ). It looks to me that...
22
by: petermichaux | last post by:
Hi, I'm curious about server load and download time if I use one big javascript file or break it into several smaller ones. Which is better? (Please think of this as the first time the scripts...
2
by: sani8888 | last post by:
Hi everybody I am a beginner with C++ programming. And I need some help. How can I start with this program *********** The program is using a text file of information as the source of the...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
6
by: portCo | last post by:
Hello there, I am creating a vb application which is some like like a questionare. Application read a text file which contains many questions and display one question and the input is needed...
4
by: saytri | last post by:
Hi guys! I am making a quiz. The questions are stored in a binary file. I made an option in the quiz where a user can add a question to the binary file. Altough this works, the problem is that...
14
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in...
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
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
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,...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.