Mehul Gurjar
6/14/2007 12:38:00 PM
Hello Arvind,
Have you tried using Dllimport attribute. If you like to use the third party
dll into your class file, you first need to import the dll in the class file
using
[DllImport("THIRDPARTY.DLL", CharSet = CharSet.Auto)] ( C# syntax )
CharSet is optional so you can remove that.
Please post your dll name or code so that I can give you a proper response.
With Regards
Mehul Gurjar
"Aravind" <Aravind@discussions.microsoft.com> wrote in message
news:29E94661-7D34-4863-947C-43F928FD40D1@microsoft.com...
> Hi,
> I have a Third party DLL which is not signed. I am trying to use that DLL
> in
> my Class Library. While time of building i got an error saying "The
> referenced DLL doesnot have strong name key"
>
> I used ILDASM to disassemble the dll. The output containes Sample.IL
> Sample.res and Sample.Resource.resource. I used ILASM to assemble(ilasm
> /dll
> /resource=sample.res sample.il /out=sample.dll /key=someSN.snk) ,
> and tried using in my application i still getting "The referenced DLL
> doesnot have strong name key" .
>
> Can you please tell me what mistake i am doing.. or is there is any best
> way
> sign Third party dll with strong Name?
>
> Thanks
> Aravind