Author |
Message
|
smcgowan |
Posted: Tue Jul 11, 2006 6:17 am Post subject: Visual Basic.NET MQPUT(...) Sample Code? |
|
|
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 |
|
 |
smcgowan |
Posted: Tue Jul 11, 2006 6:38 am Post subject: Version Info |
|
|
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 |
|
 |
Vitor |
Posted: Tue Jul 11, 2006 6:38 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
smcgowan |
Posted: Tue Jul 11, 2006 7:04 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Tue Jul 11, 2006 7:14 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Tue Jul 11, 2006 2:19 pm Post subject: |
|
|
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 |
|
 |
|