I have example code using MQSeries Client for Windows 2000 within PowerBuilder, but the example does not tell where the
code should go. I was wondering do I have to build a NVO.
$PBExportHeader$mqod.srs
global type mqod from structure //MQ Object Descriptor
character strucid[4]
long version
long objecttype
character objectname[48]
character objectqmgrname[48]
character dynamicqname[48]
character alternateuserid[12]
end type
$PBExportHeader$mqmd.srs //MQ Message Descriptor
global type mqmd from structure
character StrucId[4]
long Version
.
.
.
end type
$PBExportHeader$mqpmo.srs //MQ Put Message Options
global type mqpmo from structure
character StrucId[4]
long Version
.
.
.
end type
type prototypes
// Declare MQSeries external functions
Subroutine MQCLOSE &
( Long Hconn, REF Long Hobj, Long Options, REF Long CompCode, &
REF Long Reason ) &
Library "MQIC32.DLL" alias For "MQCLOSEstd@20"
Subroutine MQCONN &
( String QMgrName, REF Long Hconn, REF Long CompCode, REF Long Reason ) &
Library "MQIC32.DLL" alias for "MQCONNstd@16"
Subroutine MQDISC &
( REF Long Hconn, REF Long CompCode, REF Long Reason ) &
Library "MQIC32.DLL" alias for "MQDISCstd@12"
Subroutine MQOPEN &
( Long Hconn, REF MQOD ObjDesc, Long Options, REF Long Hobj, &
REF Long CompCode, REF Long Reason) &
Library "MQIC32.DLL" alias for "MQOPENstd@24"
Subroutine MQPUT &
( Long Hconn, Long Hobj, REF MQMD MsgDesc, REF MQPMO PutMsgOpts, &
Long BufferLength, REF String Buffer, REF Long CompCode, &
REF Long Reason ) &
Library "MQIC32.DLL" Alias For "MQPUTstd@32"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.