beautypg.com

Initialize your application – Teledyne LeCroy Sierra SAS_SATA Protocol Analyzer STX API Reference Manual User Manual

Page 37

background image


Sierra SAS/SATA Protocol Suite, STX Software API Reference Manual

Initialize Your Application 37

#import

"..\..\..\..\EXE\DBE.dll"

using

namespace

DBELib;

#import

"..\..\..\..\EXE\SASEngine.dll"

using

namespace

SASENGINELib;


Add the APITestSink class (APITestSink.cpp + APITestSink.h) from a current API example to

your application, for uploading and creating the sample.

Add the APIHeader.h file into your application by including the same in stdafx.h, to include all

required class/ library dependencies.

Visual C++
: Copy and paste the APITestSink.h, APITestSink.cpp, and APIHeader.h files from any

of the API Examples (for example, Test Capture Project) into your project folder. Then include

these files into your project by using File -> Add Existing Item.

Initialize Your Application

To initialize your API application, do the following:

Set a valid path for the output file in the settings of your application

.

Declare two required objects in main class of your application

.

Create instances of the two objects declared in the main class of your application

.

Finalize initialization by calling InitializeSystem function

.