Author |
Message
|
btdo |
Posted: Fri Jun 03, 2005 12:31 pm Post subject: CMQB.vb in Vb.net |
|
|
Novice
Joined: 03 Jun 2005 Posts: 19
|
Hello
Would anyone have the CMQB.vb file that would work in VB.net ?, I got the file from the MQseries Cd but it is for VB6 and it would not work properly for my vb.net app. Thanks |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Jun 03, 2005 12:38 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
yes...IBM
You need MQ 5.3 CSD07 (minimum).
I belive this was the CSD that incroporated the .Net classes. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jun 03, 2005 5:45 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
kevinf2349 wrote: |
yes...IBM
You need MQ 5.3 CSD07 (minimum).
I belive this was the CSD that incroporated the .Net classes. |
Wouldn't the .Net classes have been introduced with CSD05 ?
Anyway get the latest CSD available and read up as many bugs have been fixed in later CSDs for the .Net version  |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Jun 03, 2005 7:40 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
fjb_saper
I think you are correct it was introduced with csd05 but as I recall csd07 introduce many fixes in that area. I think I recall that , but who knows? I have been asleep since then.
The bottom line is that I personally wouldn't botch things with copying .Net classes to a down level realease. CSD07 was rock steady at our shop and fixed an awful lot of things in the .Net area that we had at earlier level.
Of couse CSD09 works great too
Of course that is for the server. CSD08 with the client csd08 fixed lots of 'issues' with .Net.
Just my finding YMMV  |
|
Back to top |
|
 |
btdo |
Posted: Mon Jun 06, 2005 6:25 am Post subject: CMQB in VB.net |
|
|
Novice
Joined: 03 Jun 2005 Posts: 19
|
Hi
I've downloaded the CSD07 but I cannot find the CMQB.vb for .net version. I have found the vb.net script for MQ_put, MQ_get ... . When I open these files, vb.net says that it the IBM.WMQ namespace cannot be found, and other things such as MQQueueManager and MQQueue have not been defined. I am kind of new at this so I'm not sure how it suppose to work. Would you know where is CMQB.vb or how I can fix these given scripts to work ? |
|
Back to top |
|
 |
kevinf2349 |
Posted: Mon Jun 06, 2005 7:06 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
You will need to add a reference in your .Net program for amqmdnet.dll which should be in the Program Files/IBM/Websphere MQ/bin directory
Are you using Visual Studio? |
|
Back to top |
|
 |
btdo |
Posted: Mon Jun 06, 2005 7:34 am Post subject: MQseries in VB.net |
|
|
Novice
Joined: 03 Jun 2005 Posts: 19
|
Hi
It works. Thanks alot !! |
|
Back to top |
|
 |
btdo |
Posted: Tue Jun 07, 2005 9:59 am Post subject: MQseries in VB.net |
|
|
Novice
Joined: 03 Jun 2005 Posts: 19
|
I have got the program to send and receive message there are certain changes from VB6 to VB.net that I am confused about. For example, if I type in MQCC_OK, the program would say that MQCC_OK has not been defined, or I cannot get access to the Hconn(connection handle). So if I want to access to these constants, how would I do it? |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Jun 07, 2005 10:20 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
It should be in CMQB
Have you imported it ?
at the top of your module. |
|
Back to top |
|
 |
btdo |
Posted: Tue Jun 07, 2005 10:54 am Post subject: MQseries in VB.net |
|
|
Novice
Joined: 03 Jun 2005 Posts: 19
|
Yes I did. Right now I don't even have the CMQB file in my solution explorer, I'm not sure where to find it. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Jun 07, 2005 10:56 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
You will need to add a reference in your .Net program for amqmdnet.dll which should be in the Program Files/IBM/Websphere MQ/bin directory
|
|
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Jun 07, 2005 11:04 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Or you could look in
C:\Program Files\IBM\WebSphere MQ\Tools\VB\sampVB6\pcfsamp.NET |
|
Back to top |
|
 |
btdo |
Posted: Tue Jun 07, 2005 11:51 am Post subject: |
|
|
Novice
Joined: 03 Jun 2005 Posts: 19
|
Hi
I have already added the reference file "amqmdnet.dll" and that's when my program started to work. As for the pcfsamp.net file, I do not have it in that folder or any other folders, all the files that I have in the vb6 folders are vb6 scripts. |
|
Back to top |
|
 |
btdo |
Posted: Wed Jun 08, 2005 8:12 am Post subject: MQseries in VB.net |
|
|
Novice
Joined: 03 Jun 2005 Posts: 19
|
Oh, I got it now. Thanks for your help |
|
Back to top |
|
 |
|