UnManaged - Non-Com Dynamic Linked Libraries

M

Mythran

I have a freeware UnManaged - Non-Com DLL I want to use. Basically, in a perfect
world, I would like to embed this library into a VB.Net class library (managed),
strong name it and store it into the gac. Now, the installer would just need to
install this VB.Net library into the GAC w/o the unmanaged dll (because it would
be embedded into the managed dll thus wouldn't need to install the 3rd party as a
separate file.

Is this possible?

Thanks,

Mythran
 
B

Bob Powell [MVP]

You can create a wrapper DLL for it which can be installed in the GAC and
the unmanaged DLL can be placed anywhere that it will be found using a
standard executable path search.

I don't know about embedding the unmanaged DLL. The DLLImport attribute only
deals with file names.

--
Bob Powell

Get a free issue of Well Formed VB edition.
http://www.bobpowell.net/vb_offer.htm

What's Well Formed?
http://www.bobpowell.net/currentissue.htm

Visit the GDI+ FAQ for articles, tips, tricks and code.
http://www.bobpowell.net/gdiplus_faq.htm

Read my blog
http://bobpowelldotnet.blogspot.com
 
H

Herfried K. Wagner [MVP]

* "Mythran said:
I have a freeware UnManaged - Non-Com DLL I want to use. Basically, in a perfect
world, I would like to embed this library into a VB.Net class library (managed),
strong name it and store it into the gac. Now, the installer would just need to
install this VB.Net library into the GAC w/o the unmanaged dll (because it would
be embedded into the managed dll thus wouldn't need to install the 3rd party as a
separate file.

AFAIK this won't work with a native DLL. If it was a .NET DLL, the
ILLink tool would do the job, but in your case you will have to do it
like Bob describes...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top