Posted: Wed Jun 28, 2006 12:56 pm Post subject: Code to Communicate Visual Basic 6.0 to MQ 6.0?
Newbie
Joined: 28 Jun 2006 Posts: 1
Hi all,
I'm new user to this forum. I hope i will get lot answers regarding MQ.
I'm using VB6.0 with MQ5.3 with CSD10 patch in my system and i'm able to put the messages through the Visual Basic into MQ.
Few days back i installed MQ6.0 in my system, the same Visual Basic application is NOT at all working.. it's not able to connect to the Queue Manager and giving me exceptions...
I'm using MQAX200.DLL in my program to connect from VB to MQ..
Can you please tell me what the specific features or code changes that i need change in my program to put messages in MQ6.0 with VB6.0?
************************************************
Set mqs = New MQAX200.MQSession
Set qm = mqs.AccessQueueManager(m_QmName)
After reaching this statement the VB application is quitting with an exception
Set q = qm.AccessQueue(m_QName, MQOO_OUTPUT Or MQOO_INQUIRE)
Also, be aware that the VB6 interface is now officially deprecated - you should be moving to the .NET interface. _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum