See the InitStockDDE( ) function in the class DDETopic example.