PC Review


Reply
Thread Tools Rate Thread

Re: Deploying unmanaged DLL with managed wrapper

 
 
adebaene@club-internet.fr
Guest
Posts: n/a
 
      16th May 2008
On 15 mai, 08:48, Kenneth Porter <shiva.blackl...@sewingwitch.com>
wrote:
> Are there any HOWTOs that show how to do this?
>
> My client is using C# in VS 2008 and my unmanaged DLL and managed C++/CLI
> wrapper are in VS 2005. What do I need to do to make sure the necessary C++
> runtime is provided along with the DLL and wrapper?
>
> Do I just give him the two DLLs to copy into his app's directory and a copy
> of the 2005 redistributable runtime installer?


Use Dependency Waker (depends.exe) to check wether your native DLL (or
the mixed mode wrapper) is relying on some DLLs that are not part of
the OS.

You should also check wether the native DLL is relying on another
component that it loads dynamically (eg, a DLL lodade by LoadLibrary,
a COM component or Active X...).

At the end of the day, it's up to you to know what your code is doing,
and what it is relying on...

Arnaud
 
Reply With Quote
 
 
 
 
Kenneth Porter
Guest
Posts: n/a
 
      16th May 2008
(E-Mail Removed) wrote in news:c564737c-378b-499f-8db0-
(E-Mail Removed):

> You should also check wether the native DLL is relying on another
> component that it loads dynamically (eg, a DLL lodade by LoadLibrary,
> a COM component or Active X...).
>
> At the end of the day, it's up to you to know what your code is doing,
> and what it is relying on...


I know *what* to package. I just don't know the best practices for doing
so.

For now, I'm providing the 2 DLLs and the installer for the redistributable
runtime.
 
Reply With Quote
 
 
 
 
adebaene@club-internet.fr
Guest
Posts: n/a
 
      19th May 2008
On 16 mai, 22:13, Kenneth Porter <shiva.blackl...@sewingwitch.com>
wrote:
> adeba...@club-internet.fr wrote in news:c564737c-378b-499f-8db0-
> 39dc7dfc3...@m36g2000hse.googlegroups.com:
>
> > You should also check wether the native DLL is relying on another
> > component that it loads dynamically (eg, a DLL lodade by LoadLibrary,
> > a COM component or Active X...).

>
> > At the end of the day, it's up to you to know what your code is doing,
> > and what it is relying on...

>
> I know *what* to package. I just don't know the best practices for doing
> so.


There are several options. For Native applications (or partly native
applications), a .MSI is the best "Micrososft" bet (there are non-
Microsoft alternatives such as InnoSetup).
You can create a MSI with a "Setup" project in Visual Studio.

> For now, I'm providing the 2 DLLs and the installer for the redistributable
> runtime.


 
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
Managed/Unmanaged code and #pragma managed/unmanaged ajtaylor@hushmail.com Microsoft VC .NET 6 18th Feb 2008 10:33 AM
Giving one managed wrapper class access to the unmanged part of another managed wrapper class mschuck Microsoft VC .NET 1 31st Aug 2006 05:27 PM
Managed Wrapper, Unmanaged Pointer DotNetJunkies User Microsoft VC .NET 0 1st Sep 2004 03:56 PM
Problem calling unmanaged C++ Library from C# through managed wrapper Adam Clauss Microsoft VC .NET 1 12th Apr 2004 11:12 AM
Firing events from within unmanaged code into a managed wrapper Kieran Benton Microsoft VC .NET 0 29th Jul 2003 01:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:47 PM.