Author |
Message
|
noodles |
Posted: Mon Jun 28, 2004 1:15 pm Post subject: How on earth do i specify the port/client channel/DNS Name |
|
|
Newbie
Joined: 28 Jun 2004 Posts: 5
|
How on earth do i specify the port/client channel/DNS Name (or IP address) using the CONNX call???
I have searched and searched and can't find the answer to this. My app works using the environment variables, but i want an easy way for them to edit an INI file and have it go to the right place, I cannot find any help on this or a simple example anywhere. If anyone could help me out on this, it would be greatly appreciated. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jun 28, 2004 1:52 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Check out the manual. You need to use a specific structure and pass/attach it to the CONNX call. |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Jun 28, 2004 1:54 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You need to fill in the MQCD (ClientConnPtr) part of the MQCNO that you pass into the MQCONNX. There are some details in the MQCNO section of the Application Programming Reference on using the MQCD. The details of the MQCD are in the Intercommunication manual. |
|
Back to top |
|
 |
noodles |
Posted: Mon Jun 28, 2004 2:15 pm Post subject: |
|
|
Newbie
Joined: 28 Jun 2004 Posts: 5
|
I've been trying the manuals for hours. Is there a simple example somewhere i can have a look at? |
|
Back to top |
|
 |
noodles |
Posted: Mon Jun 28, 2004 2:17 pm Post subject: |
|
|
Newbie
Joined: 28 Jun 2004 Posts: 5
|
Also, if i try to declare an MQCD variable, I get an error stating that it's an undeclared identifier.... |
|
Back to top |
|
 |
clindsey |
Posted: Mon Jun 28, 2004 2:53 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Take a look at amqscnxc.c among the samples shipped with MQ.
Charlie |
|
Back to top |
|
 |
|