PC Review


Reply
Thread Tools Rate Thread

How to distrib my dll

 
 
Jay
Guest
Posts: n/a
 
      6th Aug 2008
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

 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\)
Guest
Posts: n/a
 
      6th Aug 2008
INLINE

"Jay" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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! |
********************************************

 
Reply With Quote
 
QPRJAY@gmail.com
Guest
Posts: n/a
 
      6th Aug 2008
On Aug 7, 2:03*am, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo...@comcast.netNoSpamM> wrote:
> INLINE
>
> "Jay" <nore...@here.orhere> wrote in message
>
> news:%(E-Mail Removed)...
>
> > 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?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up distrib. list looking like it goes to one person Marc Microsoft Outlook Discussion 1 26th Aug 2008 08:35 PM
Create xl from a distrib list =?Utf-8?B?YnJ5YW4=?= Microsoft Outlook Discussion 24 6th Apr 2005 04:43 PM
Distrib owner/managed by =?Utf-8?B?SDIwbWFu?= Microsoft Outlook Discussion 0 8th Feb 2005 08:49 PM
one bad contact in distrib list & none sent? Charles Microsoft Outlook Contacts 3 19th Feb 2004 11:15 PM
Distrib list w/i Distrib list? Melissa Microsoft Outlook Contacts 1 23rd Oct 2003 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:31 AM.