aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.BugReporting/App.xaml
blob: b6c322d9584e4a71a65db389f571e1d8ae3be40a (plain)
1
2
3
4
5
6
7
8
9
10
11
<Application x:Class="Tango.PPC.BugReporting.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/Tango.PPC.Common;component/Resources/Merged.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
est.pb.h" #include "PMR/CalculateResponse.pb.h" #pragma once #define EXPORT_API __declspec(dllexport) using namespace std; using namespace Tango::PMR::Stubs; namespace Tango { namespace ProtoTest { class ProtoTester { public: ProtoTester(); ~ProtoTester(); }; } } extern "C" EXPORT_API int __cdecl Calculate(unsigned char* data, int size, unsigned char* *output) { CalculateRequest request; request.ParseFromArray(data, size); CalculateResponse* response = new CalculateResponse(); response->set_sum(request.a() + request.b()); unsigned char* stream = (unsigned char*)malloc(response->ByteSize()); response->SerializeToArray(stream, response->ByteSize()); *output = stream; return response->ByteSize(); }