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 » Looking for a header file

Post new topic  Reply to topic
 Looking for a header file « View previous topic :: View next topic » 
Author Message
JamesD
PostPosted: Fri Jun 09, 2006 8:38 am    Post subject: Looking for a header file Reply with quote

Newbie

Joined: 17 May 2006
Posts: 6

Hello,
I am looking for a header file called MQlib.h. I was told that I would see it on a client install or server install of MQSeries. But I see it on neither machine.

Can someone help me out here by sending me the file or posting the .h file.

I would be very appreciative.

Thanks,
Jim
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Jun 09, 2006 8:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

What do you need it for? The header files for "c" all start with "c":
cmqc.c

and "i" for c++

Google found this:
http://cvs.opensolaris.org/source/xref/on/usr/src/lib/librt/common/mqlib.h

but thats got nothing to do with WebSphere MQ.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
JamesD
PostPosted: Fri Jun 09, 2006 8:53 am    Post subject: Reply with quote

Newbie

Joined: 17 May 2006
Posts: 6

I am using it in a c script that I received. The script (from a c program) connects, opens a queue and places a message on the queue.

But this header file is referenced and I am assuming that the functions called by the script are being defined there.

Here is a snippet of the script (it is from a load test tool - LoadRunner that can use ansi c to write scripts. That is what the "lr_" functions come from):

#include "mqlib.h"
//MQ Connection Global variables
MQHCONN hQMgr;
char QManagerName[20];
MQHOBJ hQOutput;
char outputQName[40];
int iRetCode;

vuser_init()
{

strcpy(QManagerName, "QManager");
strcpy(outputQName, "OUTPUT.Q");
//Load the MQLib DLL
lr_load_dll("mqic32.dll");

//Connect to MQ Manager
iRetCode = MQ_connect(&hQMgr, QManagerName);
if(iRetCode){
lr_error_message("Failed to connect to Queue manager %s with return code %d", QManagerName, iRetCode);
lr_exit(LR_EXIT_VUSER,LR_FAIL);
}

MQLONG msgLength = 0;
char message[1000];

Action()
{
// send MQ message to message server...
iRetCode = MQ_open_queue_O(hQMgr, &hQOutput, outputQName);

Jim
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Jun 09, 2006 8:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

I've heard of loadrunner... anyways... I would guess that LR provides that header then.....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
JamesD
PostPosted: Fri Jun 09, 2006 9:04 am    Post subject: Reply with quote

Newbie

Joined: 17 May 2006
Posts: 6

unfortunately, no.

I am wondering if this is a custom header file, written by the person who posted the code.

I was looking to see if someone here recognized the filename, if it was a standard MQ file.

Maybe it is not
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Jun 09, 2006 10:26 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

JamesD wrote:
... if it was a standard MQ file.
Maybe it is not
Well, I can say for certain that it isn't a WebSphere MQ supplied header.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
JamesD
PostPosted: Fri Jun 09, 2006 11:03 am    Post subject: Reply with quote

Newbie

Joined: 17 May 2006
Posts: 6

I think that closes the issue.

Thanks for the help / info

-Jim
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 » Looking for a header file
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.