Hi All,
I was wondering if anyone can help.

We have a .net c# 2.0 assembly (native_interface.dll) that exposes
methods in a native Win32 DLL (native.dll)
We have been using this with Visual Studio 2008 without any issues.

We recently upgraded to VS2010 and I made a reference to the
native_interface.dll still using V2.0 of .net framework and tried to
complile the program. The software builds ok, but when I try to run
the application in debug mode I get the following message:

Unable to load DLL 'native.dll': A dynamic link library (DLL)
initialization routine failed. (Exception from HRESULT: 0x8007045A)

The strange thing is that if I go to the debug folder and double click
the application is runs fine. It also still runs fine if use the
vs2008 version.

To complicate matters further, a collegue of mine has the opposite
problem after upgrading to visual studio 2010: It errors on vs2008 and
works ok in vs2010.

I am wondering if it is a path setting or a debug setting.

A bit of a longshot but does anyone have any idea why?

TIA





Reply via email to