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 » Creating a Queue in C++

Post new topic  Reply to topic
 Creating a Queue in C++ « View previous topic :: View next topic » 
Author Message
mhubbard
PostPosted: Thu Oct 14, 2004 11:31 am    Post subject: Creating a Queue in C++ Reply with quote

Acolyte

Joined: 25 Aug 2004
Posts: 54

Could I please get some general guidance on how to do some things in C++. I have successfully compiled and can run the sample program imqwrld.cpp (I am running MQ V5.3 on Linux).

I would like to be able to create a queue from my program. The sample program amqsaicq.c demonstrates how to do this in C but I cannot figure out how I might do it in C++. The classes do not seem to offer methods for this. I have tried using extern C and copying in the functions from the C program, but I can't seem to get at the MQHCONN member of my QueueManager Class and I need that to pass into the C functions.

I certainly hope that I am missing something really simple.

Thanks for any help.
_________________
Michael J. Hubbard
Back to top
View user's profile Send private message
JasonE
PostPosted: Fri Oct 15, 2004 1:41 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

You canbt get to the hconn which the C++ classes are connected to.

I wonder if you could get around this problem by using shared hconns in your C code to make another connect, but I'd need to try it!
Back to top
View user's profile Send private message
mhubbard
PostPosted: Mon Oct 18, 2004 10:35 am    Post subject: Reply with quote

Acolyte

Joined: 25 Aug 2004
Posts: 54

I was able to get done what I wanted by coming to a better understanding of Model queues and the ways that queues can be created using them.
_________________
Michael J. Hubbard
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 » Creating a Queue in C++
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.