473,320 Members | 1,861 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,320 software developers and data experts.

Deploy .Net library ????

Dear all,

I have build a dll using visual .Net
I have an old application build with VB5 that I need to extend
functionnalities with this created .Net DLL.

How can I do to be able to access my .Net dll inside my VB5 project, as it
is not an ActiveX for VB5 and this library can be register for VB5 used in
the computer where it will run?

thnaks fro your answer
Regards
Serge
Nov 22 '05 #1
11 1695
Serge,

It's some time ago that I did something similar (exactly I called a .NET
assembly from vba), but it's easy going.
I think this link might help:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconexposingnetframeworkcomponentstocom.asp

Michael

"serge calderara" <se************@discussions.microsoft.com> schrieb im
Newsbeitrag news:BC**********************************@microsof t.com...
Dear all,

I have build a dll using visual .Net
I have an old application build with VB5 that I need to extend
functionnalities with this created .Net DLL.

How can I do to be able to access my .Net dll inside my VB5 project, as it
is not an ActiveX for VB5 and this library can be register for VB5 used in
the computer where it will run?

thnaks fro your answer
Regards
Serge

Nov 22 '05 #2
I know nothing about VB, but try registering it like a COM object by using
RegAsm.exe.
Then use it like any other COM object.
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:BC**********************************@microsof t.com...
Dear all,

I have build a dll using visual .Net
I have an old application build with VB5 that I need to extend
functionnalities with this created .Net DLL.

How can I do to be able to access my .Net dll inside my VB5 project, as it
is not an ActiveX for VB5 and this library can be register for VB5 used in
the computer where it will run?

thnaks fro your answer
Regards
Serge

Nov 22 '05 #3
Serge,

You cannot the .Net library is reall a library full of Net intermidiate
code.

At the development of VB5 that did not exist than.

Cor
Nov 22 '05 #4
In fact I have two different primary partition environement
On the first partition C I have Windows 2000 pro and Vb5
ON second partition D I have Windows 2000 pro and VB.net

Each enviroenemtn are really separated and cannot see ecah other, this in
order to get a clean developement enviromenet, casue by experience I get bad
behaviour when mixing.

I have copy the .Net dll and the generated Reg file by RegAsm.exe to a
folder under C drive, then I have apply my reg file

I cannot see my new register library in object browser and if I add it from
project component browse button it fails.

Do I have to get the .net framework also installed on my VB5 partition ?

thnaks for your help

regards
serge

"Michael Groeger" wrote:
Serge,

It's some time ago that I did something similar (exactly I called a .NET
assembly from vba), but it's easy going.
I think this link might help:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconexposingnetframeworkcomponentstocom.asp

Michael

"serge calderara" <se************@discussions.microsoft.com> schrieb im
Newsbeitrag news:BC**********************************@microsof t.com...
Dear all,

I have build a dll using visual .Net
I have an old application build with VB5 that I need to extend
functionnalities with this created .Net DLL.

How can I do to be able to access my .Net dll inside my VB5 project, as it
is not an ActiveX for VB5 and this library can be register for VB5 used in
the computer where it will run?

thnaks fro your answer
Regards
Serge


Nov 22 '05 #5
Some more information, here is how I have done it..
I have copy manually the assembly that I want to acces from COM to my VB5
environement

I place it under my application folder
I run the Regasm.exe utility with my assembly as parameter
It reports that types successfully register

Then I open my application
Then what ever I do, point manually to my component browse button to add the
new type to my project or calling the object library broswer, I could not see
my type.

If I add add a refence to my assembly, I get error saying it can not add
file data

How can I access my libraray as son as it reports that it is properly
register by asmreg.exe utility

thanks for your reply
Serge

"Michael Groeger" wrote:
Serge,

It's some time ago that I did something similar (exactly I called a .NET
assembly from vba), but it's easy going.
I think this link might help:

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconexposingnetframeworkcomponentstocom.asp

Michael

"serge calderara" <se************@discussions.microsoft.com> schrieb im
Newsbeitrag news:BC**********************************@microsof t.com...
Dear all,

I have build a dll using visual .Net
I have an old application build with VB5 that I need to extend
functionnalities with this created .Net DLL.

How can I do to be able to access my .Net dll inside my VB5 project, as it
is not an ActiveX for VB5 and this library can be register for VB5 used in
the computer where it will run?

thnaks fro your answer
Regards
Serge


Nov 22 '05 #6
You said that it is not possible!!! But then why microsoft provide in .Net
the commande line tool RegAsm.exe <assembly name> which is able to create
assembly registry entry to be recognize d by COM components.
I ma able to generate properly those entry but I do not know how to get
those types visible in VB5. I know from difference sourec that it is
possible, but I am doing surely something wrong

Regards
Serge

"Cor Ligthert" wrote:
Serge,

You cannot the .Net library is reall a library full of Net intermidiate
code.

At the development of VB5 that did not exist than.

Cor

Nov 22 '05 #7
Serge,

When creating a com callable wrapper all you do is create a thin class which
wraps your .net assembly providing a com interface to the com world. the
logic behind that assembly still is .net so you must install the proper
framework (1.0, 1.1) to be able to use your assembly.

Michael

"serge calderara" <se************@discussions.microsoft.com> schrieb im
Newsbeitrag news:58**********************************@microsof t.com...
In fact I have two different primary partition environement
On the first partition C I have Windows 2000 pro and Vb5
ON second partition D I have Windows 2000 pro and VB.net

Each enviroenemtn are really separated and cannot see ecah other, this in
order to get a clean developement enviromenet, casue by experience I get bad behaviour when mixing.

I have copy the .Net dll and the generated Reg file by RegAsm.exe to a
folder under C drive, then I have apply my reg file

I cannot see my new register library in object browser and if I add it from project component browse button it fails.

Do I have to get the .net framework also installed on my VB5 partition ?

thnaks for your help

regards
serge

"Michael Groeger" wrote:
Serge,

It's some time ago that I did something similar (exactly I called a .NET
assembly from vba), but it's easy going.
I think this link might help:

http://msdn.microsoft.com/library/de...us/cpguide/htm l/cpconexposingnetframeworkcomponentstocom.asp

Michael

"serge calderara" <se************@discussions.microsoft.com> schrieb im
Newsbeitrag news:BC**********************************@microsof t.com...
Dear all,

I have build a dll using visual .Net
I have an old application build with VB5 that I need to extend
functionnalities with this created .Net DLL.

How can I do to be able to access my .Net dll inside my VB5 project, as it is not an ActiveX for VB5 and this library can be register for VB5 used in the computer where it will run?

thnaks fro your answer
Regards
Serge




Nov 22 '05 #8
But com existed, so you surely can expose .net assemblies as an com
interface

"Cor Ligthert" <no************@planet.nl> schrieb im Newsbeitrag
news:uk**************@TK2MSFTNGP14.phx.gbl...
Serge,

You cannot the .Net library is reall a library full of Net intermidiate
code.

At the development of VB5 that did not exist than.

Cor



Nov 22 '05 #9

Hi,

I got it, I finally get it to work by using the TLBEXP tool to generate the
tlb file.
Then from my COm application I can brows to my library type and be able to
use it and see all function it contains

I did not use at all the RegAsm tool but I guess the same thing can be doen
with the use of the /tlb switch

regards
serge
"Michael Groeger" wrote:
But com existed, so you surely can expose .net assemblies as an com
interface

"Cor Ligthert" <no************@planet.nl> schrieb im Newsbeitrag
news:uk**************@TK2MSFTNGP14.phx.gbl...
Serge,

You cannot the .Net library is reall a library full of Net intermidiate
code.

At the development of VB5 that did not exist than.

Cor



Nov 22 '05 #10
Hi Serge,

yes I think that both methods should work the same way. I think TLBEXP was
designed for simply exporting the interface to carry it out on a remote
machine (for dcom?). I exposed .NET assemblies only once in a practice
lesson, but never really digged deeper into it. Maybe soon we need to do so,
as we try to boost some old Excel applications.

Michael

"serge calderara" <se************@discussions.microsoft.com> schrieb im
Newsbeitrag news:55**********************************@microsof t.com...

Hi,

I got it, I finally get it to work by using the TLBEXP tool to generate the tlb file.
Then from my COm application I can brows to my library type and be able to
use it and see all function it contains

I did not use at all the RegAsm tool but I guess the same thing can be doen with the use of the /tlb switch

regards
serge
"Michael Groeger" wrote:
But com existed, so you surely can expose .net assemblies as an com
interface

"Cor Ligthert" <no************@planet.nl> schrieb im Newsbeitrag
news:uk**************@TK2MSFTNGP14.phx.gbl...
Serge,

You cannot the .Net library is reall a library full of Net intermidiate code.

At the development of VB5 that did not exist than.

Cor



Nov 22 '05 #11
hi micheal,

That s exactly the same thing for me, I do this as a practice test also
becasue I have started to go to my MCAD certification.

I have try the RegAsm.exe with /tld and it extract the tlb file and register
it in one shot.

regard
Serge

"Michael Groeger" wrote:
Hi Serge,

yes I think that both methods should work the same way. I think TLBEXP was
designed for simply exporting the interface to carry it out on a remote
machine (for dcom?). I exposed .NET assemblies only once in a practice
lesson, but never really digged deeper into it. Maybe soon we need to do so,
as we try to boost some old Excel applications.

Michael

"serge calderara" <se************@discussions.microsoft.com> schrieb im
Newsbeitrag news:55**********************************@microsof t.com...

Hi,

I got it, I finally get it to work by using the TLBEXP tool to generate

the
tlb file.
Then from my COm application I can brows to my library type and be able to
use it and see all function it contains

I did not use at all the RegAsm tool but I guess the same thing can be

doen
with the use of the /tlb switch

regards
serge
"Michael Groeger" wrote:
But com existed, so you surely can expose .net assemblies as an com
interface

"Cor Ligthert" <no************@planet.nl> schrieb im Newsbeitrag
news:uk**************@TK2MSFTNGP14.phx.gbl...
> Serge,
>
> You cannot the .Net library is reall a library full of Net intermidiate > code.
>
> At the development of VB5 that did not exist than.
>
> Cor
>
>



Nov 22 '05 #12

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

Similar topics

0
by: mqsash | last post by:
Hi Problem : Unable to deploy an assembly in IE, as a cab file. (Works fine when deployed as a dll ) Description : I have created a assembly (dll with no user interface)in C# which I deploy in...
2
by: mqsash | last post by:
Hi Problem : Unable to deploy an assembly in IE, as a cab file. (Works fine when deployed as a dll ) Description : I have created a assembly (.dll) in C# which I deploy in IE. The dll name is...
2
by: bjhogan | last post by:
Hi, I have built an c# asp.net application on my laptop, it uses the Enterprise Library blocks - Data Access Application Block, Configuration Application Block. I now want to deploy my...
0
by: mqsash | last post by:
Hi Problem : Unable to deploy an assembly in IE, as a cab file. (Works fine when deployed as a dll ) Description : I have created a assembly (dll with no user interface)in C# which I deploy in...
4
by: meo | last post by:
Does .NET provide the way to deploy library to internal developer? I am trying to find the way to deploy a library file to developer for having integration to their application BUT the customer...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
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 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.