C++ notational conventions
This example shows how to invoke methods and declare parameters.
This code sample uses the methods and parameters ImqBoolean ImqQueue:: get ( ImqMessage & msg )
Declare and use the parameters as follows:ImqQueueManager * pmanager ; // Queue manager ImqQueue * pqueue ; // Message queue ImqMessage msg ; // Message char szBuffer[ 100 ]; // Buffer for message data pmanager = new ImqQueueManager ; pqueue = new ImqQueue ; pqueue -> setName( "myreplyq" ); pqueue -> setConnectionReference( pmanager ); msg.useEmptyBuffer( szBuffer, sizeof( szBuffer ) ); if ( pqueue -> get( msg ) ) { long lDataLength = msg.dataLength( ); ... }Parent topic: C++ language considerations