> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ステップ 2: プロジェクトを開く

ABBYY FlexiCapture 12 SDK での作業は、[**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-loading.md) [オブジェクト](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-loading.md)[の作成](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-loading.md)から始めます。**Engine** オブジェクトを作成すると、アプリケーションで ABBYY FlexiCapture 12 SDK のオブジェクトを使用できるようになります。

あらかじめ設定された ABBYY FlexiCapture プロジェクトで文書処理を行えるようにプログラムを準備するには、その[プロジェクト](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md#project)を開く必要があります。ABBYY FlexiCapture 12 SDK では、ABBYY FlexiCapture 12 開発者パッケージで作成したプロジェクトを使用することも、新しいプロジェクトを作成してすべてを一から設定することもできます。プロジェクトには、特定の種類のドキュメントを処理するためのすべての設定 ([画像のインポートパラメーター](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/projectproperties.md)、[ドキュメント定義](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinition.md#document-definition)、処理対象の[ドキュメントバッチ](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md#batch)) が含まれます。プロジェクトフォルダーには、プロジェクトファイル (.fcproj ファイル) とドキュメント定義を格納したフォルダーが含まれている必要があります。

![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/TutorialProject_OpenProject.jpg?fit=max\&auto=format\&n=DUHPkwoM_QL6XAR5\&q=85\&s=5576058c355f5a1237f682ee875a5e78)

ABBYY FlexiCapture 12 SDK では、プロジェクトは [**Project**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md) オブジェクトで表されます。

既存のプロジェクトを開くには、[**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**OpenProject**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-openproject.md) メソッドを使用します。メソッドの第 1 パラメーターには、プロジェクトファイルのフルパスを渡します。

プロジェクトが旧バージョンの ABBYY FlexiCapture SDK、またはこの開発者パッケージで提供されるバージョンより古い ABBYY FlexiCapture で作成されている場合は、先にプロジェクトを更新する必要があります。それには、[**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**UpdateProject**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-updateproject.md) メソッドを呼び出します。

> [accordion] C++ (COM) コード
>
> ```cpp theme={null}
> FCEngine::IEnginePtr Engine;
> // Engine オブジェクトを作成する
> ...
> // FlexiCapture プロジェクトを開く
> FCEngine::IProjectPtr project = Engine->OpenProject( L"D:\\TestProject\\TestProject.fcproj" );
> ...
> // 作業が終わったらプロジェクトを閉じる
> project->Close();
> ```

この手順は、ABBYY FlexiCapture 12 SDK のサンプルで使用されています。サンプルは **Samples** フォルダー (Start > Programs > ABBYY FlexiCapture 12 SDK > Code Samples Folder) にあります。

> [!WARNING]
>
> プロジェクトのオブジェクトにアクセスする必要がなくなるまで、[**Project**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md) オブジェクトへの参照を保持しておく必要があります。すでに解放された **Project** オブジェクトに属するオブジェクトにアクセスすると、エラーが発生します。詳細については、[プロパティの操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)を参照してください。

プロジェクトを開いた後は、プロパティの操作、[新しい画像の追加](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-addingimages.md)、[ドキュメントの認識](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-recognizing.md)を行い、[結果をエクスポート](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-exporting.md)できます。

## 関連項目

[ステップ 3: 画像の追加](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-addingimages.md)

[ステップ 1: FlexiCapture 12 SDK のロード](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-loading.md)
