Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQCNO VB problem

Status
Not open for further replies.

kdmj

Technical User
Oct 26, 2002
3
GB
Is anyone able to help with a VB coding problem we are having . We are writing
> a VB program to connect to an MQ client.
>
> An excerpt from the code follows:
>
>
> Dim aMQCNO As MQCNO 'connect options
> 'Dim aMQCNO As MQCD_DEFAULT 'connect options
> Dim aChannel As MQCD 'channel definition
>
> aChannel.ChannelName = "NMC.TRAINCALL.CLT"
> aChannel.ChannelType = MQCHT_CLNTCONN
> aChannel.ConnectionName = "171.30.136.104(1413)"
> aChannel.TransportType = MQXPT_TCP
> aChannel.MCAName = "Administrator"
>
> 'ClientConnPtr is declared as follows in a vb .bas file ..........:
>
> 'Type MQCNO
> ' StrucId As String * 4 'Structure identifier'
> ' Version As Long 'Structure version number'
> ' Options As Long 'Options that control the action of MQCONNX'
> ' ClientConnOffset As Long 'Offset of MQCD structure for client connection'
> ' ClientConnPtr As String * 4 'Address of MQCD structure for client connection'
> 'End Type
>
> 'Default Instance of MQCNO Structure'
> 'Global MQCNO_DEFAULT As MQCNO
>
> '.... to here
>
> 'Problem: Next line does not work, how do we get ptr to pt to out channel structure as set up.
> aMQCNO.ClientConnPtr = aChannel
>
Thanks
DJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top