Providing path to externals assembly native dll dependecy?

This could help: private void Form1_Load(object sender, EventArgs e) { //The AssemblyResolve event is called when the common language runtime tries to bind to the assembly and fails. AppDomain currentDomain = AppDomain. CurrentDomain; currentDomain.

AssemblyResolve += new ResolveEventHandler(currentDomain_AssemblyResolve); } //This handler is called only when the common language runtime tries to bind to the assembly and fails. Assembly currentDomain_AssemblyResolve(object sender, ResolveEventArgs args) { string dllPath = Path. Combine(YourPath, new AssemblyName(args.Name).

Name) + ". Dll"; return (File. Exists(dllPath))?

Assembly. Load(dllPath) : null; }.

Note I don't have problems with managed assemblies but with providing path to the native dlls. – pir0 May 31 at 12:06 > I have C# application which loads set of managed assemblies. Do you have access to source code for this assemblies?

– chopikadze May 31 at 12:10 Unfortunatelly no. – pir0 May 31 at 12:16.

1 This DLL are native and cannot be put to GAC. Even if it was possible I don't want to touch them - they have to stay where they are. – pir0 May 31 at 10:33.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions