This article introduces how to integrate SourceAnywhere SDK into a C++ application. Please follow
steps below to learn how-to.
- Create a Dialog based MFC project
- Import SDK
- Add Event
- Prepare info
- Connect and Login
- Retrieve Repository
- Run the App
In Visual Studio, create a Dialog based MFC prject and generate user interface like below.
Add a line to import the SDK in your code. See below.
#import ??:\Program Files (x86)\Dynamsoft\SourceAnywhere SDK\SAWSSDK.dll??/b>
In your C++ code, please initialize the COM library. Afterwards, kindly create the object and the instance for the app.
Please introduce parameters for connect and login. Some of them can be assigned by default value if you like.
Complete the operations of Connect and Login by following the code below. For more info, please refer to the SDK document which can be downloaded from our official website. Download>>
Repositories can be retrieved after successfully login the SourceAnywhere serivce.
Now please build and run the app. It should be working like following.
For more info, please refer to Dynamsoft Blog at:
Tutorial: How to Use Dynamsoft SAWS COM SDK in C++
If you need any assistance or have any problem, please feel free to contact us.