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

How to distrib my dll

Jay
I've created a dll (class file - vb.net).
This code references a non .net dll (3rd party application sdk)

When I build the dll it also copies this other dll to the output folder.

Now... as the dll I've built is .net I can't use regserver32.
When I am in visual studio (2008) I open a VS command prompt and when I try
to use RegAsm (or whatever the util is - can't check on home PC) it tells me
that it is not a valid command.

My questions are:

1. Why is it not a command? Does 2008 have something different?
2. I need to distrib this dll to all our client machines (PCs and thin
clients), how will I reg the dll on their machines? The 3rd part app is not
..net so I cannot just drop it into the program folder.
3. I think the 3rd part app expects this code to be registered (maybe in the
old fashioned way). How will this dll get a progID in the registry so that
the app recognises and finds the code when I point it to the code, which is
done as dllname.class.

Am I going to have to redo this dll in vb6?

Hope all of that made sense

Aug 6 '08 #1
2 1421
INLINE

"Jay" <no*****@here.orherewrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
I've created a dll (class file - vb.net).
This code references a non .net dll (3rd party application sdk)

When I build the dll it also copies this other dll to the output folder.

Now... as the dll I've built is .net I can't use regserver32.
When I am in visual studio (2008) I open a VS command prompt and when I
try to use RegAsm (or whatever the util is - can't check on home PC) it
tells me that it is not a valid command.

My questions are:

1. Why is it not a command? Does 2008 have something different?
I can run regasm from a VS 2008 command prompt without problem. I do have
2005 (from SQL Server) on my box, but I am not sure that means anything as
3.5 is built on 2.0.
2. I need to distrib this dll to all our client machines (PCs and thin
clients), how will I reg the dll on their machines? The 3rd part app is
not .net so I cannot just drop it into the program folder.
Create an installer
3. I think the 3rd part app expects this code to be registered (maybe in
the old fashioned way). How will this dll get a progID in the registry so
that the app recognises and finds the code when I point it to the code,
which is done as dllname.class.
As long as you have .NET installed on the client machine, you should be
fine. You might also want to look at PostBuild, as well, as it creates
native assemblies out of .NET code:
http://www.xenocode.com/Products/Postbuild/

It is also an obfuscator, if you do not want native generation.
Am I going to have to redo this dll in vb6?
Since all of your clients are COM based, it might be a good idea. The
problem here is you have COM code calling .NET code which is calling COM
code. Very messy.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

********************************************
| Think outside the box! |
********************************************

Aug 6 '08 #2
On Aug 7, 2:03*am, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo...@comcast.netNoSpamMwrote:
INLINE

"Jay" <nore...@here.orherewrote in message

news:%2****************@TK2MSFTNGP06.phx.gbl...
I've created a dll (class file - vb.net).
This code references a non .net dll (3rd party application sdk)
When I build the dll it also copies this other dll to the output folder..
Now... as the dll I've built is .net I can't use regserver32.
When I am in visual studio (2008) I open a VS command prompt and when I
try to use RegAsm (or whatever the util is - can't check on home PC) it
tells me that it is not a valid command.
My questions are:
1. Why is it not a command? Does 2008 have something different?

I can run regasm from a VS 2008 command prompt without problem. I do have
2005 (from SQL Server) on my box, but I am not sure that means anything as
3.5 is built on 2.0.
2. I need to distrib this dll to all our client machines (PCs and thin
clients), how will I reg the dll on their machines? The 3rd part app is
not .net so I cannot just drop it into the program folder.

Create an installer
3. I think the 3rd part app expects this code to be registered (maybe in
the old fashioned way). How will this dll get a progID in the registry so
that the app recognises and finds the code when I point it to the code,
which is done as dllname.class.

As long as you have .NET installed on the client machine, you should be
fine. You might also want to look at PostBuild, as well, as it creates
native assemblies out of .NET code:http://www.xenocode.com/Products/Postbuild/

It is also an obfuscator, if you do not want native generation.
Am I going to have to redo this dll in vb6?

Since all of your clients are COM based, it might be a good idea. The
problem here is you have COM code calling .NET code which is calling COM
code. Very messy.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my bloghttp://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:http://gregorybeamer.spaces.live.com/

********************************************
| Think outside the box! * * * * * * * * * * * * * * * |
********************************************
Good stuff thanks.
I've managed to run RegAsm from the VS program group shortcut.
Couldn't run it from the command window in VS. Sorted now.
Have regged the dll and the 3rd party app is finding it fine.

How do I create an installer to distrib this to clients?
Aug 6 '08 #3

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

Similar topics

0
by: jr | last post by:
Hi, Don't know what is going on, please help, thanks. ( in srv01 ) mysql -V mysql Ver 13.5 Distrib 4.1.0-alpha, for sun-solaris2.8 (sparc) mysql -uroot -hsrv02 -P4066 -p
7
by: Adam Smith | last post by:
Hope this is the right news group!! I did a server upgrade and at the same time did a mysql update from 4.0.12 to Ver 12.22 Distrib 4.0.16 mach1# mysql --version mysql Ver 12.22 Distrib...
0
by: Adam Smith | last post by:
Hello, I did a server upgrade and at the same time did a mysql update from 4.0.12 to Ver 12.22 Distrib 4.0.16. Essentially, moving from one machine to another. The dump consists of a cluster of...
3
by: zeedan | last post by:
Hi, I appologise if I'm not posting this to the correct group, but I'm having problems starting MySQL server. I need it in order to post a websurvey for a research project I'm doing for a college...
19
by: John Pifer | last post by:
I am not good at SQL - hence here goes Consider this scenario of 2 tables X and Y with a many to many relationship Table X (name,weightage) X1 2 X2 1 X3 5 X4 1
0
by: Mike Curry | last post by:
Just thought I'd post a few links to what I've done to share with others (not that its anything great, but I think starting a thread like this would be a good way for others to see what most of us...
4
by: Mike Curry | last post by:
Just thought I'd post a few links to what I've done to share with others (not that its anything great, but I think starting a thread like this would be a good way for others to see what most of us...
0
by: david | last post by:
I have developed web based information system under .NET application. The IIS, Visual Studio, and MS SQL Server are in the same server machine. Now the server will move to other site (another...
9
by: eliben | last post by:
Hello, I'm getting into Python now after years of Perl, and as part of my research I must understand how to do some common tasks I need. I have a bunch of Windows PCs at work to which I want...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.