-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStringFB2-cli.cpp
More file actions
32 lines (24 loc) · 891 Bytes
/
Copy pathStringFB2-cli.cpp
File metadata and controls
32 lines (24 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// StringFB2 native assembly code template.
// PHOENIX CONTACT Software embedded CLR native assembly builder tool generated source file.
// use this file to implement your own native code
#include "eclr.h"
#include "DocuSharedNativeLibrary.h"
#include <stdio.h>
void __PInvoke__ DocuSharedNativeLibrary::StringFB2::__Process()
{
Int32 result = IN1 + IN2;
char buffer[128] = { 0 };
sprintf(buffer, "Value: %d", result);
OUT.s.Assign(buffer);
}
DocuSharedNativeLibrary::StringFB2::StringFB2()
{
// implement your constructor code here !
}
void __PInvoke__ DocuSharedNativeLibrary::StringFB2::ctor()
{
// automatically generated auxiliary constructor : calls the constructor by displacement new operator !
// @Begin automatically generated code, do not modify !
new (this) DocuSharedNativeLibrary::StringFB2();
// @End automatically generated code
}