...
> your vc++ dll is probably dependent on another dll that is not also in bin
> or system32 dir (vc++ runtime?)
> -- bruce (sqlwork.com)
> Volodia wrote:
>> Hi,
>> I have a problem to find information how to add unmanaged dll
>> build in VC++ 2005 to the asp.net web site
>> What I have tried:
>> 1. use DllImport("MyDll.dll") to declare function in mypage.aspx.cs
>> 2. put MyDll.dll into Bin folder for ASP.Net web site
>> But unfortunately an exception has been thrown
>> Unable to load DLL 'MyDll.dll': The specified module could not be found.
>> (Exception from HRESULT: 0x8007007E).
>> Thank you,
>> Volodia.
I have done this by creating proxy managed dll:
1. creating managed dll
2. Creating inside managed dll class with code that reference
DllImport("MyDll.dll")
3. copy managed dll and unmanaged MyDll.dll into BIN folder
4. call in asp.net managed dll
Thanks,
Volodia.
"Volodia" <GROUNDS
@hotmail.com> wrote in message
news:O6iKmzqoHHA.4124@TK2MSFTNGP02.phx.gbl...
> Hi,
> I have a problem to find information how to add unmanaged dll
> build in VC++ 2005 to the asp.net web site
> What I have tried:
> 1. use DllImport("MyDll.dll") to declare function in mypage.aspx.cs
> 2. put MyDll.dll into Bin folder for ASP.Net web site
> But unfortunately an exception has been thrown
> Unable to load DLL 'MyDll.dll': The specified module could not be found.
> (Exception from HRESULT: 0x8007007E).
> Thank you,
> Volodia.