473,406 Members | 2,439 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,406 software developers and data experts.

UnManaged - Non-Com Dynamic Linked Libraries

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
Nov 20 '05 #1
2 1324
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


"Mythran" <ki********@hotmail.com> wrote in message
news:e5**************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #2
* "Mythran" <ki********@hotmail.com> scripsit:
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...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

1
by: | ov | last post by:
Hi, My application includes a class library which has both managed C++ and unmanaged C++ code. The unmanaged C++ code includes only one class with both virtual methods and non-virtual methods....
4
by: 0to60 | last post by:
I'm trying to create a .dll with VS.NET 2003 Architect that contains a math computational component. I need the guts of the thing to be in native code, as performance is key for that part. But, I...
2
by: Bob Rock | last post by:
Hello, in the last few days I've made my first few attempts at creating mixed C++ managed-unmanaged assemblies and looking afterwards with ILDASM at what is visible in those assemblies from a...
2
by: Mark Traudt | last post by:
The following managed C++ function is called from an unmanaged C++ DLL: double Divide( double num, double denom ) { if( denom == 0.0 ) throw new std::exception( "divide by zero" ); return num...
5
by: Andrew | last post by:
I want to use a managed c++ class from an unmanaged class. Here is my code: // *** Unmanaged Code // .h file class UnmanagedClass { public: // Other stuff here
2
by: J | last post by:
Compiling a straight C++ module under VC++ 7 would seem to autogen an 'IJW' type .NET module, even if the module has standard VC++ syntax. I'm assuming that the 'unmanaged' flag would have no...
12
by: doug | last post by:
I understand the basics of what managed code offers and that you open yourself up to security issues if you allow unmanaged code. We already have a decent amount of VB6 code to include COM DLLs. ...
4
by: R. MacDonald | last post by:
Hello, all, I have a .NET application (VB) that passes the address of a delegate to unmanaged code in a DLL. The unmanaged code then uses the delegate as a call-back. This seems to work...
5
by: Andy | last post by:
I'm having trouble accessing an unmanaged long from a managed class in VC++.NET When I do, the contents of the variable seem to be mangled. If I access the same variable byte-by-byte, I get the...
0
by: tomwolfstein | last post by:
Hi. I am trying to write a wrapper for the standard VC1 decoder, and I need to resolve a "TypeLoadException" The decoder comes an an executable which I've turned into a .dll. This decoder has about...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.