Getting started quickly with ZD Soft Screen Recorder SDK in C#


  1. Download and unzip the SDK package to a temporary directory, e.g.
    C:\Temp\ScnLibMax
  2. Copy the SDK's binary components folder to your project's binary folder, e.g. copy
    C:\Temp\ScnLibMax\bin\ScnLib.DLLs
    to
    D:\Projects\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\ScnLib.DLLs
    IMPORTANT: you need to copy the entire folder ScnLib.DLLs (not only the files in it) to your project's binary folder, and DO NOT change the folder name.

  3. Copy the SDK's API source file to your project's source files folder, e.g. copy
    C:\Temp\ScnLibMax\lib\C#\ScnLib.cs
    to
    D:\Projects\WindowsFormsApplication1\WindowsFormsApplication1\ScnLib.cs
  4. Open your solution in Microsoft Visual Studio, right-click your project name in the Solution Explorer, point to Add group in the context menu, click Existing Item... in the sub-menu, browse to (e.g.)
    D:\Projects\WindowsFormsApplication1\WindowsFormsApplication1\
    select ScnLib.cs and then click the Add button to add it to your project.

  5. If you haven't added an Application Manifest File to your project, please right-click your project name in the Solution Explorer again, point to Add group in the context menu, click New Item... in the sub-menu, select Application Manifest File and then click the Add button to add it to your project. You don't need to add a new one if your project already has an Application Manifest File. And then edit the Application Manifest File (app.manifest), insert the node block below into it:
    <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="ScnLib.DLLs" version="1.0.0.0" /> </dependentAssembly> </dependency>
  6. In a proper place of your source code, initialize the SDK and then start your first recording:
    ZDSoft.SDK.ScnLib_Initialize(); ZDSoft.SDK.ScnLib_SetCaptureRegion(0, 0, 1280, 720); ZDSoft.SDK.ScnLib_SetVideoPathW("C:\\Hello\\World.mp4"); ZDSoft.SDK.ScnLib_StartRecording();
  7. A while later, stop the recording and then uninitialize the SDK:
    ZDSoft.SDK.ScnLib_StopRecording(); ZDSoft.SDK.ScnLib_Uninitialize();

ZD Soft Screen Recorder SDK Overview