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! |
********************************************