ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » CMQB.vb in Vb.net

Post new topic  Reply to topic
 CMQB.vb in Vb.net « View previous topic :: View next topic » 
Author Message
btdo
PostPosted: Fri Jun 03, 2005 12:31 pm    Post subject: CMQB.vb in Vb.net Reply with quote

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
View user's profile Send private message
kevinf2349
PostPosted: Fri Jun 03, 2005 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Jun 03, 2005 5:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kevinf2349
PostPosted: Fri Jun 03, 2005 7:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
btdo
PostPosted: Mon Jun 06, 2005 6:25 am    Post subject: CMQB in VB.net Reply with quote

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
View user's profile Send private message
kevinf2349
PostPosted: Mon Jun 06, 2005 7:06 am    Post subject: Reply with quote

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
View user's profile Send private message
btdo
PostPosted: Mon Jun 06, 2005 7:34 am    Post subject: MQseries in VB.net Reply with quote

Novice

Joined: 03 Jun 2005
Posts: 19

Hi
It works. Thanks alot !!
Back to top
View user's profile Send private message
btdo
PostPosted: Tue Jun 07, 2005 9:59 am    Post subject: MQseries in VB.net Reply with quote

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
View user's profile Send private message
kevinf2349
PostPosted: Tue Jun 07, 2005 10:20 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

It should be in CMQB

Have you imported it ?

Code:
Imports IBM.WMQ


at the top of your module.
Back to top
View user's profile Send private message
btdo
PostPosted: Tue Jun 07, 2005 10:54 am    Post subject: MQseries in VB.net Reply with quote

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
View user's profile Send private message
kevinf2349
PostPosted: Tue Jun 07, 2005 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message
kevinf2349
PostPosted: Tue Jun 07, 2005 11:04 am    Post subject: Reply with quote

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
View user's profile Send private message
btdo
PostPosted: Tue Jun 07, 2005 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
btdo
PostPosted: Wed Jun 08, 2005 8:12 am    Post subject: MQseries in VB.net Reply with quote

Novice

Joined: 03 Jun 2005
Posts: 19

Oh, I got it now. Thanks for your help
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » CMQB.vb in Vb.net
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.