Compilation of TrioPC_NET.dll

Compilation of TrioPC_NET.dll

I am trying to compile TrioPC_NET.dll and TrioPC.h in MATLAB but receiving many errors (partial list): 

Type 'INT32' was not found.
Type 'BOOL' was not found.
Type 'VARIANTPtr' was not found. 
'TrioPC_GetConnectionType': not in formal parameter list
syntax error: missing ')' before identifier 'Variable'

i tried compiling with different compilers: 

MinGW64 Compiler (C++)  
MinGW64 Compiler with Windows 10 SDK or later (C++)  
Microsoft Visual C++ 2015  
Microsoft Visual C++ 2017  
Microsoft Visual C++ 2019

Suggestions?