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 » IBM MQ API Support » Visual Basic.NET MQPUT(...) Sample Code?

Post new topic  Reply to topic
 Visual Basic.NET MQPUT(...) Sample Code? « View previous topic :: View next topic » 
Author Message
smcgowan
PostPosted: Tue Jul 11, 2006 6:17 am    Post subject: Visual Basic.NET MQPUT(...) Sample Code? Reply with quote

Novice

Joined: 11 Jul 2006
Posts: 14

Hi there,

I'm new to the MQ API. Does anybody have a sample VB.NET app that uses the MQPUT() call? I've tried upgrading the VB 6.0 sample app called "amqsputb.vbp" in Visual Basic Express 2005. There were a number of errors after upgrading the project to .NET. I'm not familiar with .NET so I don't know how to fix these.

It seems I can either tell you what these upgrade errors are if someone might be able to help adapt the app to .NET. Or does someone have a sample .NET project that uses MQPUT()?

Thanks,
Sean
Back to top
View user's profile Send private message
smcgowan
PostPosted: Tue Jul 11, 2006 6:38 am    Post subject: Version Info Reply with quote

Novice

Joined: 11 Jul 2006
Posts: 14

By the way, I'm using WebSphere MQ 6.0

The sample application originally ran in Visual Basic 6.0.

The .NET version I have is Visual Basic Express 2005
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jul 11, 2006 6:38 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Which .NET is that?

This may be relevant:

http://www.mqseries.net/phpBB2/viewtopic.php?t=30444&highlight=net
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smcgowan
PostPosted: Tue Jul 11, 2006 7:04 am    Post subject: Reply with quote

Novice

Joined: 11 Jul 2006
Posts: 14

Thanks for the reply...Yeah the .NET framework I'm using is version 2.0. By the looks of that other post you referenced, I may need to install .NET framework 1.1 as MQ doesn't support .NET 2.0.

However, the errors with the upgraded .NET app are to do with parts of the code. If it helps, they are:


1. 'Sub Main' was not found in 'amqsputb.fraPut'.

2. 'Character is not valid'

(on line 'Module CMQB; ..\Include\cmqb.bas' - complaining about semi colon)

3. 'As Any' is not supported in 'Declare' statements.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jul 11, 2006 7:14 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Sorry, no help at all. I still use VB6 & have no exposure at all to VB 2005.

There'll be someone else along in a minute. It's that kind of forum....

(Usually it's Java questions that I have to weasle out of - this is a depressing development )
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jul 11, 2006 2:19 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

there is a separate set of .NET samples from the VB samples...

<mq_install>\Tools\dotnet\samples
_________________
I am *not* the model of the modern major general.
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 » IBM MQ API Support » Visual Basic.NET MQPUT(...) Sample Code?
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.