C++ Language invocation

To access the IADs interface on the channel SYSTEM.DEFAULT.SENDER defined on queue manager queue.manager.1 residing on machine heron, use the following:

IADs *pMyObject;
 
ADsGetObject(
TEXT("WebSphere MQ://MQHost/heron/MQQueueManager/queue.manager.1/MQChannel/
                                         SYSTEM.DEFAULT.SENDER")
    , IID_IADs
    , (void**)&pMyObject);