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

Mixed Assembly Problems

I have a managed C++ based assembly referencing a bunch of unmanaged DLLs. I
strongly name the the mixed assembly, and place it in the GAC. I write a VB
client and reference the managed assembly:

1) What does the managed assembly look at to decide where to look for the
unmanaged DLL dependencies?

2) Why do I run into difficulties running clients EXEs (e.g., VB) against
the GAC based assembly?

I'm using VS2005 for all.
Oct 12 '06 #1
2 1247
>
>1) What does the managed assembly look at to decide where to look for the
unmanaged DLL dependencies?
The standard LoadLibrary rules.
http://msdn.microsoft.com/library/en...arch_order.asp

>2) Why do I run into difficulties running clients EXEs (e.g., VB) against
the GAC based assembly?
I don't know. What kind of difficulties?
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Oct 12 '06 #2
Diffuiculties include messages like the following whenever I run any client
app that references the GAC based assembly:
>>An unhandled exception of type 'System.IO.FileNotFoundException' occurred in >>StrongNameGACDebug.exe
>>Additional information: The specified module could not be found. (Exception from >>HRESULT: 0x8007007E)
It's like it cannot find the GAC based assembly or one of its dependencies.
It's dependencies include unmanaged DLLs located back in the GAC based
assembly's build directory.

"Mattias Sjögren" wrote:

1) What does the managed assembly look at to decide where to look for the
unmanaged DLL dependencies?

The standard LoadLibrary rules.
http://msdn.microsoft.com/library/en...arch_order.asp

2) Why do I run into difficulties running clients EXEs (e.g., VB) against
the GAC based assembly?

I don't know. What kind of difficulties?
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Oct 13 '06 #3

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

Similar topics

8
by: Nadav | last post by:
Hi, I am writing a performence critical application, this require me to stick to unmanaged C++ as performance is much better using unmanaged C++ ( about 33% better ), Still, I am trying to avoid...
1
by: Colin Desmond | last post by:
I have a dll assembly compiler with the /clr flag as it contains ref classes and traditional style C++ classes. I want to write unit tests for the ref classes in that assembly. VS2005 allows me...
8
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
0
by: MC-Advantica | last post by:
I have built a managed wrapper class and assembly that expose much functionality available in unmanaged legacy DLLs. I can write VB apps that interface with the managed assembly, and the managed...
1
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I have an VC++ MFC Win32 application that isn't working correctly when I build it with VS2005. The problem seems to be in some ADO ActiveX controls that came with VS6 and are now out of support....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.