2

I have a warning. I want to fix it, but I do not know, please help me!

Warning: Type library importer encountered a property getter 'sessionPlaylistCount' on type 'WMPLib.IWMPNowPlayingHelperDispatch' without a valid return type. The importer will attempt to import this property as a method instead.

screenshot

kennyzx
  • 12,845
  • 6
  • 39
  • 83
  • Hi and welcome on stackoverflow. Please be more specific: What are you trying to do? What kind of warning is this, by the compiler? Are you using Visual Studio? Please show some of your code, too. – Marcel Jan 13 '15 at 07:37
  • 1
    Please show the return type of `'sessionPlaylistCount`. – Codor Jan 13 '15 at 07:40
  • I want to remove the warning. I add axWindowsMediaPlayer project, VS 2008 Pro, Win7 64bit. (Sorry, I'm not fluent in English) – user3723060 Jan 13 '15 at 07:44
  • I don't use "sessionPlaylistCount" in my project. I tried them all but I don't see – user3723060 Jan 13 '15 at 07:46
  • http://i.stack.imgur.com/mKn43.png – user3723060 Jan 13 '15 at 07:47
  • See the accepted answer to this question for where the warning comes from: http://stackoverflow.com/questions/15796731/build-warnings-related-to-com-reference-version-1-0-type-library-and-vs-2010. It is safe to ignore. I am not sure whether or not you can disable the warning. – Alex Humphrey Jan 13 '15 at 07:49

0 Answers0