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

Using a .NET-dll in VB6

Hello,

I wrote a DLL in VB.NET and we need to use it inside a VB6-program. I was
unable to register the dll, but under Projekt|References, I can see the tlb
just fine. But when running the VB6-exe on any computer I get an error
message 'Run-time error 429'. ActiveX component can't create object. What
could I do to make them work together?
Nov 20 '05 #1
8 2670

"Rudy" <re@geovision.de> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Hello,

I wrote a DLL in VB.NET and we need to use it inside a VB6-program. I was
unable to register the dll, but under Projekt|References, I can see the tlb just fine. But when running the VB6-exe on any computer I get an error
message 'Run-time error 429'. ActiveX component can't create object. What
could I do to make them work together?


You can't. ( there is no possibility )..

Regards,
Josip Habjan
Nov 20 '05 #2
"Rudy" <re@geovision.de> schrieb
Hello,

I wrote a DLL in VB.NET and we need to use it inside a VB6-program. I
was unable to register the dll, but under Projekt|References, I can
see the tlb just fine. But when running the VB6-exe on any computer I
get an error message 'Run-time error 429'. ActiveX component can't
create object. What could I do to make them work together?


Did you deploy the .NET DLL and register it on the other machine
(regasm.exe)?
--
Armin

Nov 20 '05 #3
> Hello,
: >
: > I wrote a DLL in VB.NET and we need to use it inside a VB6-program. I
was
: > unable to register the dll, but under Projekt|References, I can see the
: tlb
: > just fine. But when running the VB6-exe on any computer I get an error
: > message 'Run-time error 429'. ActiveX component can't create object.
What
: > could I do to make them work together?
: >
:
: You can't. ( there is no possibility )..
:
: Regards,
: Josip Habjan

i believe you are mistaken.
:
:
Nov 20 '05 #4
"c-yellow" <ta**********@HOTMAIL.COM> wrote in message
news:XH*****************@newssvr33.news.prodigy.co m...
Hello, : >
: > I wrote a DLL in VB.NET and we need to use it inside a VB6-program. I
was
: > unable to register the dll, but under Projekt|References, I can see

the : tlb
: > just fine. But when running the VB6-exe on any computer I get an error
: > message 'Run-time error 429'. ActiveX component can't create object.
What
: > could I do to make them work together?
: >
:
: You can't. ( there is no possibility )..
:
: Regards,
: Josip Habjan

i believe you are mistaken.
:


maby :o)
Nov 20 '05 #5
Now it's working. Thank you very much for the regasm-tip.
"Armin Zingler" <az*******@freenet.de> schrieb im Newsbeitrag
news:u5**************@tk2msftngp13.phx.gbl...
"Rudy" <re@geovision.de> schrieb
Hello,

I wrote a DLL in VB.NET and we need to use it inside a VB6-program. I
was unable to register the dll, but under Projekt|References, I can
see the tlb just fine. But when running the VB6-exe on any computer I
get an error message 'Run-time error 429'. ActiveX component can't
create object. What could I do to make them work together?


Did you deploy the .NET DLL and register it on the other machine
(regasm.exe)?
--
Armin

Nov 20 '05 #6
"Rudy" <re@geovision.de> schrieb
Now it's working. Thank you very much for the regasm-tip.


Was a pleasure. :-)

More information:

<F1>
Visual Studio.NET
.NET Framework
Programming with .NET Framework
Interoperating with unmanaged code
Exposing .NET framework components to COM
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB/dndotnet/html/callnetfrcom.htm

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB/cpguide/html/cpconprimaryinteropas
semblies.htm

(see hints in signature)
--
Armin

- Links might be split into two lines. Concatenate them using notepad.
- Links might require to add a ".nnnn" after the "2003FEB", e.g.
"2003FEB.1033" for localized versions.
- Links starting with "ms-help" are URLs for the document explorer (<F1>).
Paste them in the URL textbox and press enter. Using internal help (menu
tools -> options -> environment -> help), display the "Web" toolbar that
contains the textbox.
- The tree representing the table of contents has been translated from
localized (German) version. Excuse slight deviations.

Nov 20 '05 #7
Hi Rudy,

You may need to take a look at COM interop. .NET assemblies aren't
accessible through VB6, because they are managed code, and VB6 does not use
the managed framework. COM interop will let you expose your classes through
COM, and VB6 will let you use COM.

The reason you can't create the object is because you haven't exposed any
COM object.

However, may I ask why you wish to do this? Can you not convert your VB6
program to .NET?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
"Rudy" <re@geovision.de> wrote in message
news:Ou**************@TK2MSFTNGP09.phx.gbl...
Hello,

I wrote a DLL in VB.NET and we need to use it inside a VB6-program. I was
unable to register the dll, but under Projekt|References, I can see the tlb just fine. But when running the VB6-exe on any computer I get an error
message 'Run-time error 429'. ActiveX component can't create object. What
could I do to make them work together?

Nov 20 '05 #8
Hi Josip,

Take a look at my post

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations
"Josip Habjan" <jhabjan(at)digital(dot)hr> wrote in message
news:ux**************@TK2MSFTNGP12.phx.gbl...
"c-yellow" <ta**********@HOTMAIL.COM> wrote in message
news:XH*****************@newssvr33.news.prodigy.co m...
Hello,

: >
: > I wrote a DLL in VB.NET and we need to use it inside a VB6-program. I was
: > unable to register the dll, but under Projekt|References, I can see

the
: tlb
: > just fine. But when running the VB6-exe on any computer I get an error : > message 'Run-time error 429'. ActiveX component can't create object.
What
: > could I do to make them work together?
: >
:
: You can't. ( there is no possibility )..
:
: Regards,
: Josip Habjan

i believe you are mistaken.
:


maby :o)

Nov 20 '05 #9

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

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
0
by: anonieko | last post by:
> > > > Writing an XML document the .Net way If you've been using the .Net Framework for even a week, you know that the kids in Redmond really thought of almost everything, so they're not...
43
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
3
by: msnews.microsoft.com | last post by:
Hello All, I am trying to write Web Controls and in most of the samples I came across, I am seeing the following function where a HTML string is written to create HTML Controls. ///...
5
by: IkBenHet | last post by:
Hello, I use this script to upload image files to a folder on a IIS6 server: ******************* START UPLOAD.ASPX FILE ********************** <%@ Page Language="VB" Debug="true" %>
7
by: | last post by:
Hello, I would like to do the following from a asp.net button click: <form method="POST" action="https://www.1234.com/trans_center/gateway/direct.cgi"> <input type="hidden" name="Merchant"...
13
by: JIM.H. | last post by:
Hello, I have the following lines to read connection string from web.config; string cStr = ConfigurationSettings.AppSettings; SqlConnection sqlConn = new SqlConnection(cStr);...
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?
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:
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
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,...
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
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,...

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.