473,395 Members | 1,466 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,395 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 1698
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...

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.