Getting started quickly with ZD Soft Screen Recorder SDK in Delphi


  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\Test\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\Delphi\ScnLib.pas
    to
    D:\Projects\Test\ScnLib.pas
  4. Open your project in Delphi, right-click your project name in the Project Manager, click Add... in the context menu, browse to (e.g.)
    D:\Projects\Test\
    select ScnLib.pas and then click the Open button to add it to your project.

  5. If you haven't specified an Application Manifest File in your project, please copy the SDK's pre-made manifest file
    C:\Temp\ScnLibMax\bin\app.manifest
    to
    D:\Projects\Test\app.manifest
    and then right-click your project name in the Project Manager again, click the Options... at the bottom of the context menu, find and click the Application node in the options tree, select Custom from the dropdown list in the Manifest File group, click the ... button next to the Custom manifest field, browse to (e.g.)
    D:\Projects\Test\
    select app.manifest and then click the Open button. And finally click the OK to confirm. Note: you need to do this for all configurations (Debug, Release or more).

    Or, if your project already has specified a custom manifest file, then you need to insert the node block below into it:
    <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="ScnLib.DLLs" version="1.0.0.0" /> </dependentAssembly> </dependency>
  6. In the source files where the SDK will be used, add ScnLib to the uses like this:
    uses Winapi.Windows, System.Classes, ..., ScnLib;
  7. In a proper place of your source code, initialize the SDK and then start your first recording:
    ScnLib_Initialize(); ScnLib_SetCaptureRegion(0, 0, 1280, 720); ScnLib_SetVideoPathW('C:\Hello\World.mp4'); ScnLib_StartRecording();
  8. A while later, stop the recording and then uninitialize the SDK:
    ScnLib_StopRecording(); ScnLib_Uninitialize();

ZD Soft Screen Recorder SDK Overview