I want to use some of the new features of mshtml.dll version 9.0 such as IHTMLCSSRule.
The interop version in the following folder is version 7.0.3300.1:
C:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll
The COM version in the following folder is version 9.0.8112.16441:
C:\Windows\System32\mshtml.dll
From what I could ascertain from the web, I should do this to create a .NET interop version 9:
d:\zTemp>tlbimp mshtml.tlb /out:Microsoft.mshtml.dll /namespace:mshtml /asmversi on:9.0
This seems to have worked but generated the following warnings:
TlbImp : warning TI3001 : Primary interop assembly 'Microsoft.mshtml, Version=7. 0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is already registere d for type library 'C:\Windows\system32\mshtml.tlb'. TlbImp
: warning TI3016 : The type library importer could not convert the signature for the member 'mshtml._userBITMAP.pBuffer'. TlbImp :
warning TI3016 : The type library importer could not convert the signature for the member 'mshtml._FLAGGED_BYTE_BLOB.abData'. TlbImp :
warning TI3015 : At least one of the arguments for 'mshtml.ICanvasPixel ArrayData.GetBufferPointer' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to m anipulate. TlbImp : Type library imported to d:\zTemp\Microsoft.mshtml.dll
- Can these warnings be safely ignored?
- Is there no precompiled version of this dll available for download from the microsoft site?
- Is it ok for me to distribute this dll with my app?
- When adding a reference to the dll to a .NET 3.5 project I was given the following warning:
'Microsoft.mshtml.dll', or one of its dependencies requires a later version of the .Net Framework than the one specified in the project ...
Since it was a warning and let me add the reference any way, can I still use certain features of the .dll in .NET 3.5?
Thanks