Installation

Make sure your machine meets the system requirements before you begin.

This article explains how to install Aspose.Words for C++ on your computer.

Install or Update Aspose.Words for C++ using Manage NuGet Packages

NuGet is the easiest way to download and install Aspose.Words for C++ APIs. To do this, follow these steps:

  1. Open Microsoft Visual Studio and Manage NuGet Packages from the menu to open package manager
  2. Search for “aspose” or “aspose.words” to find the desired Aspose API
    aspose-words-cpp-nuget
  3. Select the desired Aspose API and click “Install”

The selected API will be downloaded and referenced in your project.

You can also update Aspose.Words for C++ to the desired version using Manage NuGet Packages.

Install or Update Aspose.Words for C++ using Package Manager Console

You can also install or update Aspose.Words for C++ APIs using the Package Manager Console. To do this, follow these steps:

  1. Open Microsoft Visual Studio and Package Manager Console from the menu to open package manager console
  2. Type the command Install-Package Aspose.Words.Cpp -Version 21.3.0 and press Enter to install the latest full release into your application
  3. Once downloaded, you will see confirmation messages
  4. Now you may find that Aspose.Words has been successfully added and referenced in your application for you

In Package Manager Console, you can also use the Update-Package Aspose.Words.Cpp command to check for updates to the Aspose.Words package and install them if present.

Install Aspose.Words for C++ Manually

You can download Aspose.Words for C++ from NuGet Gallery by clicking the “Manual download” link in the Info section. Offline API Documentation can also be found in the downloaded ZIP package.

To use Aspose.Words for C++ in your applications, follow these steps:

  1. Download the latest files
  2. Unzip the folder into a production environment
  3. To use Aspose.Words for C++, refer to the Include and Lib folders in your project

FAQ

  1. Q: How can I install Aspose.Words for C++ using NuGet in Visual Studio?
    A: Open Visual Studio, choose Manage NuGet Packages, search for “Aspose.Words.Cpp”, select the package and click Install. NuGet will download the binaries and automatically add the required references to your project.

  2. Q: What is the command to install or update Aspose.Words for C++ from the Package Manager Console?
    A: To install a specific version, run
    Install-Package Aspose.Words.Cpp -Version 21.3.0.
    To update to the latest version, run Update-Package Aspose.Words.Cpp. The console will download the package and update the project references.

  3. Q: How do I install Aspose.Words for C++ manually without using NuGet?
    A: Download the ZIP package from the NuGet Gallery’s Manual download link. Extract the archive, then add the include folder to your compiler’s include path and the lib folder to the linker’s library path. Finally, link against the appropriate Aspose.Words library files.

  4. Q: After a manual installation, how do I reference the Aspose.Words libraries in my C++ project?
    A: In your project settings, add the extracted include directory to Additional Include Directories and the lib directory to Additional Library Directories. Then, add the required .lib files (e.g., Aspose.Words.Cpp.lib) to Additional Dependencies and ensure the corresponding DLLs are available at runtime.

  5. Q: Do I need a license to use Aspose.Words for C++, and how do I apply it?
    A: A license is required for production use to remove evaluation limitations. After obtaining the license file (Aspose.Words.Cpp.lic), load it at the start of your application with:

    Aspose::Words::License* license = new Aspose::Words::License();
    license->SetLicense(u"Path/To/Aspose.Words.Cpp.lic");
    

    This activates the full functionality of the library.