{"id":2157,"date":"2021-01-23T11:36:40","date_gmt":"2021-01-23T09:36:40","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=2157"},"modified":"2021-01-23T11:36:40","modified_gmt":"2021-01-23T09:36:40","slug":"windows-sdk-directshow-samples-adapted-for-visual-studio-2019","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/2157","title":{"rendered":"Windows SDK DirectShow Samples adapted for Visual Studio 2019"},"content":{"rendered":"\n<p>Over 20+ years there have been a steady flow of questions &#8220;how to build these projects&#8221;. Back in time the problem was more about having exactly matching settings in the application\/library projects and mandatory dependent static library. At some point Microsoft abandoned the samples, then removed from the SDK completely. Luckily, some point the samples were returned back to public as <a href=\"https:\/\/github.com\/microsoft\/Windows-classic-samples\/tree\/master\/Samples\/Win7Samples\">&#8220;Win7Samples&#8221; under &#8220;Windows Classic Samples&#8221; published on GitHub<\/a>.<\/p>\n\n\n\n<p>DirectShow samples there, however, exist in the state where they were dropped years ago. Still functioning and in good standing, but not prepared for building out of the box. So the flow of the &#8220;how to build&#8221; questions is still here.<\/p>\n\n\n\n<p>I made a fork of the repository (branch &#8220;directshow&#8221; on fork of the Microsoft&#8217;s repository; &#8220;Samples\/Win7Samples\/multimedia\/directshow&#8221; from the root of the repository) and upgraded a few projects, those most popular ones (including AmCap, PushSource, EzRGB24, beginner&#8217;s DShowPlayer application):<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/roman380\/Windows-classic-samples\/tree\/directshow\/Samples\/Win7Samples\/multimedia\/directshow\">Windows-classic-samples\/Samples\/Win7Samples\/multimedia\/directshow at directshow \u00c2\u00b7 roman380\/Windows-classic-samples (github.com)<\/a><\/p>\n\n\n\n<p>The code requires Microsoft Visual Studio 2019 (<a href=\"https:\/\/visualstudio.microsoft.com\/vs\/community\/\">Community<\/a> version is okay) and current <a href=\"https:\/\/developer.microsoft.com\/en-US\/windows\/downloads\/windows-10-sdk\/\">Windows 10 SDK<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/01\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"600\" src=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/01\/image-2-690x600.png\" alt=\"\" class=\"wp-image-2158\" srcset=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/01\/image-2-690x600.png 690w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/01\/image-2-320x278.png 320w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/01\/image-2-768x667.png 768w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/01\/image-2-600x521.png 600w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/01\/image-2-1040x904.png 1040w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/01\/image-2.png 1290w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/a><\/figure>\n\n\n\n<p>To start, clone the fork and locate <a href=\"https:\/\/github.com\/roman380\/Windows-classic-samples\/tree\/directshow\/Samples\/Win7Samples\/multimedia\/directshow\">README at the directshow folder<\/a>, open the solution and build the code, <code>Debug<\/code> or <code>Release<\/code> configuration, <code>Win32<\/code> or <code>x64<\/code> platform.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over 20+ years there have been a steady flow of questions &#8220;how to build these projects&#8221;. Back in time the problem was more about having exactly matching settings in the application\/library projects and mandatory dependent static library. At some point Microsoft abandoned the samples, then removed from the SDK completely. Luckily, some point the samples&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/2157\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[78,581],"class_list":["post-2157","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-directshow","tag-winapi-2"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/2157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=2157"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/2157\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=2157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=2157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=2157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}