Windows

更新时间:
复制 MD 格式

This topic describes how to integrate the SDK on Windows.

Prerequisites

Visual Studio 2017 or a later version is installed.

Environment requirements

For more information about the environment requirements for Windows, see SDK limits for each platform.

Integrate the SDK

Note

This topic uses a Microsoft Foundation Class (MFC) project as an example. You can also use other UI frameworks as needed.

  1. Download and decompress the Windows SDK. For the download URL, see SDK downloads.

  2. In Visual Studio, create a dialog-based MFC project. Enter a project name, such as DingRtcSample.

  3. Move the decompressed SDK files to the folder that contains the .sln file.

  4. Configure the properties for the DingRTCSample project to add the SDK library and header file paths.

    Note

    The current SDK version supports only the Release x86 build.

  5. Set the project platform to x86.

  6. On the project properties page, set the path for the SDK header files.

  7. Specify the path to the static library and import the RTC library.

  8. Edit the code to call the DingRTCSdk.

    image.png

    Retrieve the SDK version number:

    image.png

  9. Copy the DingRTC.dll file and its dependent files, such as ffmpeg.dll, to the execution path of the program.

    image

  10. Compile and run the program. If the following dialog box appears, the integration is successful.

image.png

What to do next

After integrating the SDK, you can implement basic Real-Time Communication features. For more information, see Windows.