-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStructFB2-cli.cpp
More file actions
34 lines (26 loc) · 945 Bytes
/
Copy pathStructFB2-cli.cpp
File metadata and controls
34 lines (26 loc) · 945 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
32
33
// StructFB2 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::StructFB2::__Process()
{
Int32 result = IN1 + IN2;
char buffer[128] = { 0 };
sprintf(buffer, "Value: %d", result);
INFO.VALUE_A = IN1;
INFO.VALUE_B = IN2;
INFO.TEXT.s.Assign(buffer);
}
DocuSharedNativeLibrary::StructFB2::StructFB2()
{
// implement your constructor code here !
}
void __PInvoke__ DocuSharedNativeLibrary::StructFB2::ctor()
{
// automatically generated auxiliary constructor : calls the constructor by displacement new operator !
// @Begin automatically generated code, do not modify !
new (this) DocuSharedNativeLibrary::StructFB2();
// @End automatically generated code
}