Cdaqhandler::getversiondll, Cdaqhandler::isobject, Cdaqhandler::open – Yokogawa PC-Based MX100 User Manual
Page 56

2-33
IM MX190-01E
MX100 -Visual C++
2
CDAQHandler::getVersionDLL
Syntax
static const int getVersionDLL(void);
Description
Gets the version number of the DLL.
Return value
Returns the version number.
CDAQHandler::isObject
Syntax
virtual int isObject(const char * classname = "CDAQHandler");
Parameters
classname
Specify the class name using a string.
Description
Checks whether the specified class name was inherited.
If parameters are omitted, checks whether it is this class.
Classes that inherit this class must be overriden in order to check their own classes.
Returns true (valid) if the class was inherited. Otherwise, returns false (invalid).
Return value
Returns a return value of 1 (true), or 0 (false).
CDAQHandler::open
Syntax
virtual int open(const char * strAddress, unsigned int
uiPort);
Parameters
strAddress
Specify the IP address as a string.
uiPort
Specify the port number.
Description
Connects to the device with the IP address and port number specified by the
parameters. Constructs the communication descriptor and stores it in the
communication descriptor field of the data member.
If the communication descriptor already exists, it is not changed.
Return value
Returns an error number.
Error:
Creating connection is failure
Failed to construct the communication descriptor.
Connection exists already
Communication descriptor already exists.
Communication error
An error was detected in communications.
2.4 Details of the MX100/DARWIN Common Class