Author |
Message
|
JamesD |
Posted: Fri Jun 09, 2006 8:38 am Post subject: Looking for a header file |
|
|
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 |
|
 |
wschutz |
Posted: Fri Jun 09, 2006 8:43 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
JamesD |
Posted: Fri Jun 09, 2006 8:53 am Post subject: |
|
|
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 |
|
 |
wschutz |
Posted: Fri Jun 09, 2006 8:57 am Post subject: |
|
|
 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 |
|
 |
JamesD |
Posted: Fri Jun 09, 2006 9:04 am Post subject: |
|
|
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 |
|
 |
wschutz |
Posted: Fri Jun 09, 2006 10:26 am Post subject: |
|
|
 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 |
|
 |
JamesD |
Posted: Fri Jun 09, 2006 11:03 am Post subject: |
|
|
Newbie
Joined: 17 May 2006 Posts: 6
|
I think that closes the issue.
Thanks for the help / info
-Jim |
|
Back to top |
|
 |
|