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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powerbuilder ole object to get msmq queue message problem

Status
Not open for further replies.

kentzhou

MIS
Oct 26, 2006
2
CA
Hi, I use ole object in pb to send and received message from msmq. If the computer is local computer name, it is okay.
But when I use a another computer name (in the network), I can send the message, but when i recieve message, I got system error 35.

How to solve this problem? help please.

Sample code:

OleObject myQInfo
OleObject myQDest
OleObject myQMsg

myQInfo = Create OleObject
myQDest = Create OleObject
myQMsg = Create OleObject

myQInfo.ConnectToNewObject("MSMQ.MSMQQueueInfo")
myQDest.ConnectToNewObject("MSMQ.MSMQQueue")
myQMsg.ConnectToNewObject("MSMQ.MSMQMessage")

//if mycompurter is local computer name, it's okay.
//If it is another computer name, error will come out at next line.
myqinfo.FormatName ="DIRECT=OS:mycomputername\PRIVATE$\test"

//error will come out at this line
myQDest = myQInfo_Open(1, 0)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top