# Aspose.Slides for C++

Use these instructions for this platform only. Read the project's existing instructions and dependency files first. Keep its current package version unless the task requires a change. Confirm API names against this platform's documentation; bindings are not interchangeable.

## Setup

Choose the C++ package for the target operating system and architecture. On Windows, add the `Aspose.Slides.Cpp` package through Visual Studio's NuGet Package Manager; Linux uses the native download and its CMake configuration. Include the documented presentation and export headers, and link the matching Aspose.Slides and CodePorting libraries. A header-only compile does not prove the program can link or run.

## Minimal example

After installation, run this as `starter.cpp` in your configured project. It creates `hello.pptx` in the working directory. Use a scratch directory so an existing file is not replaced.

```cpp
#include <DOM/Presentation.h>
#include <DOM/SlideCollection.h>
#include <DOM/Slide.h>
#include <DOM/ShapeCollection.h>
#include <DOM/AutoShape.h>
#include <DOM/ShapeType.h>
#include <Export/SaveFormat.h>

int main()
{
    auto presentation = System::MakeObject<Aspose::Slides::Presentation>();
    auto shape = presentation->get_Slides()->idx_get(0)->get_Shapes()->AddAutoShape(
        Aspose::Slides::ShapeType::Rectangle, 50.0f, 50.0f, 500.0f, 80.0f);
    shape->AddTextFrame(u"Hello, Aspose.Slides!");
    presentation->Save(u"hello.pptx", Aspose::Slides::Export::SaveFormat::Pptx);
    presentation->Dispose();
    return 0;
}
```

Verified on 2026-11-18: Windows x64, MSVC v142, Aspose.Slides.Cpp and CodePorting 26.8.0. The program ran and the saved file contained one slide with the expected text. This evaluation-mode check does not prove licensed output or other operating systems.

## License

Evaluation mode is suitable for a local smoke test and can add watermarks or other limits. If the user supplies a valid license, follow the [licensing guide](https://docs.aspose.com/slides/cpp/licensing/) before creating presentations. Read the license from a private local location accessible to the process. Never put license contents, keys, or personal paths in instructions, source control, or logs.

## Verify the change

Before expanding a change, create a small presentation, save it to a new file, and open the result. Check the requested content, slide count, and formatting. Build and run the exact code against the installed package; report any missing runtime or dependency instead of claiming it was tested.

Keep input files local unless the user permits sharing them. Write output to a new file and preserve the original. Report what ran, the versions used, and any checks that remain.

## Sources

- [Documentation](https://docs.aspose.com/slides/cpp/)
- [API reference](https://reference.aspose.com/slides/cpp/)
- [Installation](https://docs.aspose.com/slides/cpp/installation/)
- [Licensing](https://docs.aspose.com/slides/cpp/licensing/)
