# Edit PPT in C++

> Edit PPT files in C++. Use Aspose.Slides for C++ to modify a PowerPoint presentation and save the edited PPT file.

Source: https://products.aspose.com/slides/cpp/editor/ppt/
Updated: 2026-07-09



## Edit PPT using Aspose.Slides

[**Aspose.Slides for C++**](/slides/cpp/) is a C++ API for working with PowerPoint presentations. You can load a `PPT` file into a `Presentation`, add text to a slide, and save the result as `PPT`.

## Edit PPT in C++

Using [**Aspose.Slides for C++**](/slides/cpp/), you can edit a `PPT` presentation by loading it with the `Presentation` class, adding a text shape, and saving the result with `SaveFormat::Ppt`.

### C++ code for editing PPT

```cpp
auto presentation = MakeObject<Presentation>(u"presentation.ppt");

auto slide = presentation->get_Slide(0);
auto textBox = slide->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 10, 10, 100, 50);
textBox->get_TextFrame()->set_Text(u"New text");

presentation->Save(u"presentation.ppt", SaveFormat::Ppt);
presentation->Dispose();
```

## How to edit PPT in C++

Install **Aspose.Slides for C++**. See [**Installation**](https://docs.aspose.com/slides/cpp/installation/).

Add the library as a reference in your project.

Load the `PPT` presentation with the `Presentation` class.

Access the slide you want to edit.

Add a text shape with `AddAutoShape` and `set_Text`.

Save the edited presentation with `SaveFormat::Ppt`.

## Edit other files
