Getting started quickly with ZD Soft Screen Recorder SDK in Visual C++
- Download and unzip the SDK package to a temporary directory, e.g.
C:\Temp\ScnLibMax
- 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\MFCApplication1\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.
- Copy the SDK's API header and library files to your project's source files folder, e.g. copy
C:\Temp\ScnLibMax\lib\VC\ScnLib.h C:\Temp\ScnLibMax\lib\VC\ScnLib.lib to
D:\Projects\MFCApplication1\MFCApplication1\ScnLib.h D:\Projects\MFCApplication1\MFCApplication1\ScnLib.lib
Note: you may copy these 2 files to a common directory where you are used to store 3rd-party libraries.
- Include the SDK's API header and import library in one of your project source files like this:
#include "ScnLib.h"
#pragma comment(lib, "ScnLib.lib")
- 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(L"C:\\Hello\\World.mp4");
ScnLib_StartRecording();
- A while later, stop the recording and then uninitialize the SDK:
ScnLib_StopRecording();
ScnLib_Uninitialize();
|