Code:
// Function of CMOTOCOM32 class
CMOTOCOM32.ConnectToXRC("149.201.4.66");
Is CMOTOCOM32 a class or an object? If the later, how is it declared? If the former, then you need an object of that type to call the functions. Unless that function is static, in which case you need to call it like this:
Code:
CMOTOCOM32::ConnectToXRC("149.201.4.66");