CodePorting.Translator.Cs2Cpp.Framework 22.9.0

NuGet\Install-Package CodePorting.Translator.Cs2Cpp.Framework -Version 22.9.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package CodePorting.Translator.Cs2Cpp.Framework --version 22.9.0
<PackageReference Include="CodePorting.Translator.Cs2Cpp.Framework" Version="22.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodePorting.Translator.Cs2Cpp.Framework --version 22.9.0
#r "nuget: CodePorting.Translator.Cs2Cpp.Framework, 22.9.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CodePorting.Translator.Cs2Cpp.Framework as a Cake Addin
#addin nuget:?package=CodePorting.Translator.Cs2Cpp.Framework&version=22.9.0

// Install CodePorting.Translator.Cs2Cpp.Framework as a Cake Tool
#tool nuget:?package=CodePorting.Translator.Cs2Cpp.Framework&version=22.9.0

Description

CodePorting.Translator Cs2Cpp is a framework capable of translating C# code to C++. The resulting code provides the same API original .Net code had and can run in the translated (unmanaged) C++ environment.

CodePorting.Translator.Cs2Cpp.Framework package contains a C++ Library with a substitution for .Net classes and some service code. The translated code is ultimately dependent on this component.

If you use the full CodePorting.Translator Cs2Cpp package to translate your code, this library is already included in it, and you don't need to manage this dependency manually as the translator will generate CMake project files with proper references. However, if you're planning to distribute your translated code, providing the dependency on CodePorting.Translator.Cs2Cpp.Framework Nuget package (where applicable) is the easiest way to do so. Alternatively, you may ask your clients to download respectful CodePorting.Translator.Cs2Cpp packages from the CodePorting website.

Always make sure that the version of the translator used to translate your code matches the version of the CodePorting.Translator.Cs2Cpp.Framework package you use. Failing to do so can result in compilation and/or runtime errors, since the API may change between the versions.

Usage

The types from this package can be used in the client's code to interact with the translated code. Please make sure to use proper smart pointer wrappers for class-like types. For more information, please refer to the product documentation.

#include <system/string.h>
#include <system/console.h>
#include <system/collections/list.h>
#include <MyTranslatedProject/MyTranslatedClass.h>

using namespace System;
using namespace System::Collections::Generic;
using namespace MyTranslatedProject;

int main(int, char*[])
{
    auto list = MakeObject<List<String>>();
    list->Add(u"Apple");
    list->Add(u"Banana");
    list->Add(u"Apricot");
    list->Sort();

    auto myobj = MakeObject<MyTranslatedClass>();
    list = myobj->Process(list);

    for (const auto &item : list)
        Console::WriteLine(item);
    return 0;
}

Resources

Product Versions
native native
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (13)

Showing the top 5 NuGet packages that depend on CodePorting.Translator.Cs2Cpp.Framework:

Package Downloads
Aspose.Slides.Cpp

Aspose.Slides for C++ is a robust API for enhancing your C++ applications with the Microsoft PowerPoint and OpenDocument presentation manipulation features for a large variety of file formats (PPT, POT, PPS, PPTX, POTX, PPSX, PPTM, PPSM, POTM, ODP, OTP, etc). Once you seamlessly integrate our API, your C++ Apps will not need any 3rd party component or software to be installed. Apart from presentation file creation, loading, conversion, merging, and printing you can also perform content formatting. Render slides, as well as the images on slides in various image formats (PNG, BMP, JPEG, etc). Add, format, modify, compare and clone slides as well as their layouts. Work with charts, shapes, SmartArt, tables, and text. Aspose.Slides for C++ also helps you with fine-tuning the 3D aspects of PowerPoint presentations (rotation, depth, extrusion, gradient, WordArt). Aspose.Slides for C++ supports both 32-bit and 64-bit Microsoft Windows as well as 64-bit Linux and macOS. Other versions: Aspose.Slides for C++ 32-bit library - https://www.nuget.org/packages/Aspose.Slides.Cpp.x86

Aspose.PDF.Cpp

Aspose.PDF for C++ API can be used to build C++ applications which are capable of reading, writing, rendering, printing, and converting PDF documents (PDF, PDF/A). You can also work with attachments, images, security, signatures, text, and tables. Aspose.PDF for C++ allows you to extract text from all pages of a PDF document, set privileges on a PDF file, work with bookmarks and annotations. It also gives you vast control over customizing the PDF display properties, fonts, zoom fact, and content formatting. Text search feature is also available. You can convert PDF documents to the DOC, DOCX, and SVG formats by simply calling the designated C++ methods. Aspose.PDF for C++ performs equally well at the client-end and server-side. It can be used in the development environment that supports C++ but explicitly supports MS Visual Studio 2015 or later. Aspose.PDF for C++ can be installed manually by downloading its ZIP package or it (Aspose.PDF.CPP) can be added via NuGet Package Manager. Support for Qt framework is also available.

Aspose.Words.Cpp

Aspose.Words for C++ is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation. Users can perform a wide variety of document tasks, ranging from simply converting documents from one supported format to another and modifying these documents during the conversion process, to business-oriented tasks, such as creating structured and visually appealing documents or automating reporting with complex templates and data-bound fields.

Aspose.Email.Cpp

Aspose.Email for C++ is a native C++ library that enables C++ developers to create, manipulate and convert Outlook and other popular emailing file formats. The API is independent of Office Automation or MS Outlook, and doesn't need these to be installed on the server. The API can be used on Windows OS for working with emailing file formats. Developers can use the API to transmit messages via a number of popular protocols like POP3, IMAP, SMTP

Aspose.PUB.Cpp

Aspose.PUB for C++ is a native C++ library that enables the developers to add pub converting to their C++ applications. The library allows convert pub document to pdf.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
22.9.0 99 9/14/2022
22.8.0 799 8/16/2022
22.7.0 1,678 7/19/2022
22.6.0 1,432 6/16/2022