Build warnings related to COM link (version 1.0) and VS 2010

I just finished restructuring and updating a bunch of C # projects from Visual Studio 2008 to Visual Studio 2010. In addition, all projects have been modified to install the .NET 4.0 runtime. Everything works successfully, but now I get a bunch of warnings related to a link to COM, which depends on my application. One warning is given below. I get about 100 warnings like the ones below every time I create a solution.

Warning 60  Type library importer encountered a property getter 'ClearTopCardQue' on type 'FuelDirectOLETLB.FuelDirectOLE' without a valid return type.  The importer will attempt to import this property as a method instead. c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets  1558    9   FDServer

I called a third-party provider who created the object that I was referring to to no avail. They advised me to make sure that I am targeting the x86 that I am. They also stated that I should be able to create my projects against any version of the .NET runtime. Personally, I suspect that this is due to the fact that I am referring to a type 1 library in Visual Studio 2010 / .NET Runtime 4.0, whereas before I built VS 2008 / .NET Runtime 3.5. I tried to build against all build configurations (i.e. X86, x64, Any Cpu) and tried every version of the runtime prior to 2.0. The warnings concern me because I'm not sure what they indicate. Can anyone make any suggestions / recommendations that can help me find the reason for these warnings?

+5
source share
2

, . IDL . getters COM - , .NET. , , .NET.

. Windows Media Player. Visual Studio :

  Tlbimp.exe c:\windows\system32\wmp.dll

:

TlbImp: TI0000: getter 'sessionPlaylistCount' 'WMPLib.IWMPNowPlayingHelperDispatch' . . , WMPLib.dll

:

  Oleview.exe c:\windows\system32\wmp.dll

IDL. / . "sessionPlaylistCount", :

[id(0x00000ba3), propget]
HRESULT sessionPlaylistCount([out] long* pVal);

, , [retval].

, Tlbimp.exe . get_sessionPlaylistCount(out count), . , , .

+17

(wmp.dll)?

, :

, , , . x86 x64;

Windows Media Player .

Windows 10; .

"" . , , . , , Build 12.0.10011.x .

Build 12.0.14393.x

Build 12.0.10011.x

0

All Articles