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 » Using LoadLibrary with IMQC23VN.DLL

Post new topic  Reply to topic
 Using LoadLibrary with IMQC23VN.DLL « View previous topic :: View next topic » 
Author Message
stig306
PostPosted: Thu Apr 23, 2009 1:32 am    Post subject: Using LoadLibrary with IMQC23VN.DLL Reply with quote

Newbie

Joined: 23 Apr 2009
Posts: 2

I trying to produce a C++ project that can run with different versions of MQ Client e.g 5.3/6.0. Is it possible to explicitly link to IMQC23VN.DLL ?

typedef void (WINAPI * PCTOR) (LPVOID);
m_hInstLib = LoadLibrary("..\IMQC23VN.DLL");

ImqQueueManager *pQOutboundManager = (ImqQueueManager *) malloc (sizeof (ImqQueueManager));

PCTOR pCtorImqMgr = (PCTOR) GetProcAddress(m_hInstLib, "??0ImqMgr@@QAE@XZ");
pCtorImqMgr(pQOutboundManager);

etc

Has anyone managed to do this?
Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Apr 23, 2009 1:39 am    Post subject: Re: Using LoadLibrary with IMQC23VN.DLL Reply with quote

Grand High Poobah

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

stig306 wrote:
Has anyone managed to do this?


I suspect very few people have tried. The v5.3 client can connect to a v6 queue manager and a v6 client can connect to a v5.3 queue manager, so most apps use the available dll dynamically and get on with their lives.

What's your requirement for specific client versions? Or have you experienced problems mixing versions? If so, what problems?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
stig306
PostPosted: Thu Apr 23, 2009 2:38 am    Post subject: Reply with quote

Newbie

Joined: 23 Apr 2009
Posts: 2

I am currently using v5.3 but want to make sure my project is still ok when it runs with version 6 client. I am about to try this and reading your response it sounds like it should still work ok.

My reason for attempting this is I currently have 3 project files that link to 5.1/5.2 or 5.3
e.g. one project links to ..\mqseries 5.3\tools\lib\imqb23vn.lib and include directory ; ..\mqseries 5.3\tools\c\include.

I thought instead of creating a new project for version 6 I have instead one project that loaded it explicitly.

Thanks
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 » Using LoadLibrary with IMQC23VN.DLL
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.