Message Service Clients for C/C++ and .NET, Version 1.2
Operating Systems: Linux, Windows
Writing XMS applications
in C++
This section provides
information that you might find useful when writing XMS applications
in C++.
The section contains
the following topics:
Sub-topics
Using namespaces in C++
All the C++ classes supplied with XMS are
declared in a namespace called xms.
Using the String class in C++
In the C++ API, a String object encapsulates a string. When called,
certain methods accept a String object as a parameter or return a String object.
Handling errors in C++
If XMS detects
an error while processing a call to a method, XMS throws
an exception.
Using message and exception listeners in C++
A C++ application uses a message listener to receive messages asynchronously,
and uses an exception listener to be notified asynchronously of a problem
with a connection.
Using the C API in a C++ application
Most C++ classes supplied with XMS provide
a getHandle() method. A C++ application can call the getHandle() method of
an object to retrieve the handle that a C application would use to access
the object. The C++ application can then use the handle to access the object
by calling functions in the C API.