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

Share Class Library over network???

Is there a way to do this without having to register it
computer-by-computer???

tried everything already... but nothign worked out as should..

tks..
Aug 18 '08 #1
7 1324
Hi,

It is hard to tell exactly what you want to do. However, perhaps it is
Remoting or a Webservice, both of which provide "objects" over a network
connection. You might start here (though there are many more articles on
these subjects)
http://www.vbdotnetheaven.com/Upload...tRemoting.aspx

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Aug 18 '08 #2
What I need is not that hard...

I made an Class Lib in VB.NET (VS2005), that will be called from a VB6
App... so far, no problems.... Everything was working out just fine..

But This vb6 app is shared over a company network.. And I don't want to
have to register it into all computers..
This .net lib is used to get some data and write a XML..

I'll read this article and the give you a feedback..

tks...

"Dick Grier" <dick_grierNOSPAM@.msn.comescreveu na mensagem
news:e9**************@TK2MSFTNGP02.phx.gbl...
Hi,

It is hard to tell exactly what you want to do. However, perhaps it is
Remoting or a Webservice, both of which provide "objects" over a network
connection. You might start here (though there are many more articles on
these subjects)
http://www.vbdotnetheaven.com/Upload...tRemoting.aspx

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.

Aug 18 '08 #3
So this is seen as a COM component and AFAIK a COM component necessarily
needs to be registered. Now you could perhaps use the regasm command line
tool and see if you could launch this from a login script :
http://msdn.microsoft.com/en-us/libr...w6(VS.80).aspx

I've seen a "COM registration free" feature but this is the other way round
(ie .NET is able to use a COM component by using information from an xml
file rather than by looking this in the registry).

Ah ! from a quick look it looks like a bit broader than that. Try perhaps
around :
http://msdn.microsoft.com/en-us/library/fh1h056h.aspx
and in particular http://msdn.microsoft.com/en-us/library/eew13bza.aspx

A bit hard but at first sight it looks like you should be able to create a
manifest file for your COM application so that it knows about managed
components and a manifest in your managed component that match so that the
COM component can see the .NET component without any registry handling...

Good luck.

--
Patrice

"Christiano Donke" <cd****@digiexpress.com.bra écrit dans le message de
groupe de discussion : #n**************@TK2MSFTNGP05.phx.gbl...
What I need is not that hard...

I made an Class Lib in VB.NET (VS2005), that will be called from a VB6
App... so far, no problems.... Everything was working out just fine..

But This vb6 app is shared over a company network.. And I don't want to
have to register it into all computers..
This .net lib is used to get some data and write a XML..

I'll read this article and the give you a feedback..

tks...

"Dick Grier" <dick_grierNOSPAM@.msn.comescreveu na mensagem
news:e9**************@TK2MSFTNGP02.phx.gbl...
>Hi,

It is hard to tell exactly what you want to do. However, perhaps it is
Remoting or a Webservice, both of which provide "objects" over a network
connection. You might start here (though there are many more articles on
these subjects)
http://www.vbdotnetheaven.com/Upload...tRemoting.aspx

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications,
Fourth Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.

Aug 18 '08 #4

Well in that case

Asuming you used COM ( shouldn`t know how you could call a VS dll
otherwise from a VB6 app ) the VS.Net assembly follows the standard COM
rules
wich means that you must register the assembly in the local registry ,
however your VB6 app could do that on startup ( the needed reg file can be
generated by regasm.exe , see the options of this tool )

An VS.Net COM assembly must be located in the GAC , The system32 or the
calling application directory so if the VB6 executable is also located on
the network share in the same folder as the VS.Net COM assembly this should
work .

Another option would be to start a .Net executable with parameters ( through
shell ) and that this would call the dll through .Net in that way nothing
needs to be registred on the systems.

Ofcourse above would only work if it is allowed to start .Net assembly`s on
a networked drive , wich is standard not the case
use this tool to adjust the assembly privilige , note that the system
administrator can do this company wide with a group policy
http://msdn.microsoft.com/en-us/libr...hc(VS.80).aspx

hth

Michel Posseth [MCP]
VB6 , VB.Net Coder
"Christiano Donke" <cd****@digiexpress.com.brschreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
What I need is not that hard...

I made an Class Lib in VB.NET (VS2005), that will be called from a VB6
App... so far, no problems.... Everything was working out just fine..

But This vb6 app is shared over a company network.. And I don't want to
have to register it into all computers..
This .net lib is used to get some data and write a XML..

I'll read this article and the give you a feedback..

tks...

"Dick Grier" <dick_grierNOSPAM@.msn.comescreveu na mensagem
news:e9**************@TK2MSFTNGP02.phx.gbl...
>Hi,

It is hard to tell exactly what you want to do. However, perhaps it is
Remoting or a Webservice, both of which provide "objects" over a network
connection. You might start here (though there are many more articles on
these subjects)
http://www.vbdotnetheaven.com/Upload...tRemoting.aspx

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications,
Fourth Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.


Aug 18 '08 #5
Patrice

AFAIK

This is not possible as VB6 must be aware of the VS.Net COM component
it is in this case VB6 that must initialize the COM wrapper of the VS.Net
managed object VB6 just does a lookup of the clsid in the registry and
alternatively looks up the install location there , if it is not availlable
it wil look in the application directory , the GAC and the system32
directory for the component if it does not find a match it blows up with a
runtime error 91 "Object variable or with block not set"

It would realy suprise me if it would behave different as described above ,
but hey i learn something new every day :-)

Michel

"Patrice" <http://www.chez.com/scribe/schreef in bericht
news:%2****************@TK2MSFTNGP03.phx.gbl...
So this is seen as a COM component and AFAIK a COM component necessarily
needs to be registered. Now you could perhaps use the regasm command line
tool and see if you could launch this from a login script :
http://msdn.microsoft.com/en-us/libr...w6(VS.80).aspx

I've seen a "COM registration free" feature but this is the other way
round (ie .NET is able to use a COM component by using information from an
xml file rather than by looking this in the registry).

Ah ! from a quick look it looks like a bit broader than that. Try perhaps
around :
http://msdn.microsoft.com/en-us/library/fh1h056h.aspx
and in particular http://msdn.microsoft.com/en-us/library/eew13bza.aspx

A bit hard but at first sight it looks like you should be able to create a
manifest file for your COM application so that it knows about managed
components and a manifest in your managed component that match so that the
COM component can see the .NET component without any registry handling...

Good luck.

--
Patrice

"Christiano Donke" <cd****@digiexpress.com.bra écrit dans le message de
groupe de discussion : #n**************@TK2MSFTNGP05.phx.gbl...
>What I need is not that hard...

I made an Class Lib in VB.NET (VS2005), that will be called from a VB6
App... so far, no problems.... Everything was working out just fine..

But This vb6 app is shared over a company network.. And I don't want
to have to register it into all computers..
This .net lib is used to get some data and write a XML..

I'll read this article and the give you a feedback..

tks...

"Dick Grier" <dick_grierNOSPAM@.msn.comescreveu na mensagem
news:e9**************@TK2MSFTNGP02.phx.gbl...
>>Hi,

It is hard to tell exactly what you want to do. However, perhaps it is
Remoting or a Webservice, both of which provide "objects" over a network
connection. You might start here (though there are many more articles
on these subjects)
http://www.vbdotnetheaven.com/Upload...tRemoting.aspx

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications,
Fourth Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised
March 2006.
See www.hardandsoftware.net for details and contact information.


Aug 18 '08 #6
If it is COM (and that is what is required for an object from VB6, written
in .NET), then it has to be registered.

I think a better scenario might be to provide a network service via sockets
or a webservice. If you use Sockets, you have to write the
interface/communications code using Winsock on the VB6 side, and
System.Net.Sockets on the .NET side. If you go with a webservice, then you
can try the SoapSDK toolkit for VB6. This is deprecated, but I suspect that
it may still be available (even if you use sockets, this toolkit might be
useful, so that you could use XML more easily on the VB6 side).

Since this is a VB6 application, personally, I'd live with the limitation(s)
of VB6, and simply register the component on each machine. After all,
that's what you had to do to install the program, or to make any major
modifications to it -- and this is a major modification.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Aug 19 '08 #7
On Aug 19, 11:22 am, "Dick Grier" <dick_grierNOSPAM@.msn.comwrote:
If it is COM (and that is what is required for an object from VB6, written
in .NET), then it has to be registered.

I think a better scenario might be to provide a network service via sockets
or a webservice. If you use Sockets, you have to write the
interface/communications code using Winsock on the VB6 side, and
System.Net.Sockets on the .NET side. If you go with a webservice, then you
can try the SoapSDK toolkit for VB6. This is deprecated, but I suspect that
it may still be available (even if you use sockets, this toolkit might be
useful, so that you could use XML more easily on the VB6 side).

Since this is a VB6 application, personally, I'd live with the limitation(s)
of VB6, and simply register the component on each machine. After all,
that's what you had to do to install the program, or to make any major
modifications to it -- and this is a major modification.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
Seewww.hardandsoftware.netfor details and contact information.
I haven't tried it yet, but I ran across this:

http://www.thecommon.net/10.html

Chris
Aug 22 '08 #8

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

Similar topics

8
by: Leo R | last post by:
Hi, Is it possible to create a network-drive at the SYSTEM-level? E.g.: map X: to \\server1\share so a windows service can reach X: without having to log on? I want a Windows .NET service to...
8
by: Michelle | last post by:
Hello! I have an ASP.NET application (1.1 framework) that needs to be able to read/write files on a network share. The access to this file share will be fairly restricted, so I need to...
7
by: Frank Rizzo | last post by:
Hello, I've asked this question in the languages.vb group, but got no response, so I'll try my luck here. My app needs to copy a file from a local folder to a network share. The network share...
1
by: brian.oneil2 | last post by:
Is there a way to install this onto a network file share and allow a team to access it? I would say share a CD from a networked CD drive, but there are multiple CD's that would have to be inserted....
1
by: Agnes | last post by:
We got a dataserver , I built some usercontrol and class and languate.resx . I PLACED all of them in the data server, I want to let other to use the sources . HOWEVER, after i build the class...
0
by: Frank Rizzo | last post by:
Hello, my app needs to copy a file on a network share. The network share is accessible via a domain ID, which has all possible folder rights assigned to it. I am using the impersonation code...
1
by: Shallotx | last post by:
I am working on a database imaging application. Links to the images are stored in the database and accessed via a shared network drive. This network share is mapped when the user logs on to...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
3
by: Michel Smit | last post by:
Hello, I have a question. We have a webserver in a domain, DomainA, and a webserver in a DMZ with local users and groups only. I'm trying to copy a file from the DomainA webserver to the DMZ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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:
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...

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.