Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Building / compiling DirectShow "empty DLL".

Building / compiling DirectShow "empty DLL".

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++visual-studiocom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vaclav_
    wrote on last edited by
    #1

    Building / compiling DirectShow DLL I am still not sure how this “empty DLL” is being compiled. Here is an example of DirctShow sample (Synth ) direct from SDK 8.1. I am using #pragma message to see the flow of compilation. I compiles / links just fine , but the commonly used $ifndef / #define preprocessed flag does not stop multiple passes thru the source files. Here is the build output.

    Compiling resources...
    Compiling...
    dynsrc.cpp
    synth.cpp
    Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base\dynsrc.cpp
    Last modified on Sun Mar 23 10:23:52 2014
    File: DynSrc.cpp
    implements CDynamicSource, which is a Quartz source filter
    #include
    #include
    #include DynSrc.h
    File: DynSrc.h
    DirectShow sample code - defines classes to simplify creation of
    ActiveX source filters that support continuous generation of data
    Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base\DynSrc.h
    Last modified on Sun Mar 23 09:52:24 2014
    #define __CDYNAMICSOURCE__ START
    define CDynamicSource class
    define CDynamicSourceStream class
    #define __CDYNAMICSOURCE__ END
    #include DynSrc.h
    synthprp.cpp
    Compiling ***MODIFIED***C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\initguid.h
    Last modified on Sun Mar 2 13:48:42 2014
    Definitions for controlling GUID initialization
    File: DynSrc.h
    DirectShow sample code - defines classes to simplify creation of
    ActiveX source filters that support continuous generation of data
    Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base\DynSrc.h
    Last modified on Sun Mar 23 09:52:24 2014
    #define __CDYNAMICSOURCE__ START
    define CDynamicSource class
    define CDynamicSourceStream class
    #define __CDYNAMICSOURCE__ END
    A_Test.cpp
    Generating Code...
    Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base\A_Test.cpp
    Last modified on Sun Mar 23 09:40:08 2014
    Linking...
    Creating library Debug/synth.lib and object Debug/synth.exp
    synth.ax - 0 error(s), 0 warning(s)

    Here is a sceond issue, probably related to first one.

    So I tried to stop the compilation using #error. It gives expected output , but does not stop the compilation. Here is the output.

    Compiling resources...
    Compiling...
    dynsrc.cpp
    Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base

    L 1 Reply Last reply
    0
    • V Vaclav_

      Building / compiling DirectShow DLL I am still not sure how this “empty DLL” is being compiled. Here is an example of DirctShow sample (Synth ) direct from SDK 8.1. I am using #pragma message to see the flow of compilation. I compiles / links just fine , but the commonly used $ifndef / #define preprocessed flag does not stop multiple passes thru the source files. Here is the build output.

      Compiling resources...
      Compiling...
      dynsrc.cpp
      synth.cpp
      Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base\dynsrc.cpp
      Last modified on Sun Mar 23 10:23:52 2014
      File: DynSrc.cpp
      implements CDynamicSource, which is a Quartz source filter
      #include
      #include
      #include DynSrc.h
      File: DynSrc.h
      DirectShow sample code - defines classes to simplify creation of
      ActiveX source filters that support continuous generation of data
      Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base\DynSrc.h
      Last modified on Sun Mar 23 09:52:24 2014
      #define __CDYNAMICSOURCE__ START
      define CDynamicSource class
      define CDynamicSourceStream class
      #define __CDYNAMICSOURCE__ END
      #include DynSrc.h
      synthprp.cpp
      Compiling ***MODIFIED***C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\initguid.h
      Last modified on Sun Mar 2 13:48:42 2014
      Definitions for controlling GUID initialization
      File: DynSrc.h
      DirectShow sample code - defines classes to simplify creation of
      ActiveX source filters that support continuous generation of data
      Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base\DynSrc.h
      Last modified on Sun Mar 23 09:52:24 2014
      #define __CDYNAMICSOURCE__ START
      define CDynamicSource class
      define CDynamicSourceStream class
      #define __CDYNAMICSOURCE__ END
      A_Test.cpp
      Generating Code...
      Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base\A_Test.cpp
      Last modified on Sun Mar 23 09:40:08 2014
      Linking...
      Creating library Debug/synth.lib and object Debug/synth.exp
      synth.ax - 0 error(s), 0 warning(s)

      Here is a sceond issue, probably related to first one.

      So I tried to stop the compilation using #error. It gives expected output , but does not stop the compilation. Here is the output.

      Compiling resources...
      Compiling...
      dynsrc.cpp
      Compiling D:\00\0 SDK\DirectShow SDK 8.1 new\DXF\DXSDK\samples\Multimedia\DirectShow\Filters\Filter_Base

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Vaclav_Sal wrote:

      If this post looks goofy as far as text and code goes, sorry I could not get preview to work.

      You need to clear the checkbox below the edit window titled "Treat my content as plain text, not as HTML".

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups