473,568 Members | 2,898 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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 2405
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****@discuss ions.microsoft. com> wrote in message
news:13******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. com> wrote in message
news:5E******** *************** ***********@mic rosoft.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
3602
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 rules when it comes to file paths. A lot of Microsoft installers for example, and also installers of other companies, do not work because they handle...
1
3403
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 would like to open C++ file streams due to easier exception handeling and safe closure of file ressources. Question 1: I open a standard file...
21
4667
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 long, where each line is a string of 4 ASCII characters corresponding to a 12-bit hexadecimal audio sample. The file reads something like this... 081F
9
2405
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 when I give a path like @"C:\holdfiles\myfile.txt" it looks on the server C drive. How do I pull from the client? Do I need a different class and/or...
22
3960
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 are downloaded so that browser caching is out of the equation.) Thanks, Peter
2
2108
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 questions. The program starts by outputting a simple text information screen: Question Master
12
13415
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 file was built by draging tables from the Data Sources pane. Auto-generated code created the files associated wtih the XSD file (xss,
6
2468
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 from user to calculate the score. Here is a problem. I can read a text file. However, it's read whole file at a time. So,
4
9063
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 whenever a user enters a new question is just overwrites the whole file, instead of adding it to the rest of the questions in the binary file. Do i have...
14
12781
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 case it's a question, i want to popup a messageBox or something, and bring back to the batch file the result (Yes\No question). I know how to excute...
0
7604
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7660
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6275
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5498
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2101
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.