Author |
Message
|
Beaula |
Posted: Thu Oct 24, 2002 4:57 am Post subject: Importing C Header Files |
|
|
Apprentice
Joined: 11 Sep 2002 Posts: 39 Location: Infotech, Madhapur,India
|
I wrote a header file with three elements as:
struct Request{
char EmpNo[6];
char EmpName[8];
};
and saved the file as Request.h and imported the same in MQSI Message Set. The report file showed that the import was sucessful, but when I try to add the imported elements, I find that there are no elements there.
Can you please guide us where we went wrong in importing the C Header Files........ |
|
Back to top |
|
 |
Lisa |
Posted: Thu Oct 24, 2002 8:00 am Post subject: Import |
|
|
Master
Joined: 07 Jun 2002 Posts: 287 Location: NJ
|
I had no problem with the import.
Make sure that you have a new line at the end of the structure. Also, take a look at the \log sub-directory log files. Your errors will be located within the .RPT file
Lisa
Importing C header file D:\MQSI Samples\ih03-3\lisa1.h...
Created Value DEFAULT_CHAR_VALUE.
Importing C structure Request.
Created Value EMPNO_VALUE.
Created Element EmpNo.
Inserted Value EMPNO_VALUE into Element EmpNo.
Created Value EMPNAME_VALUE.
Created Element EmpName.
Inserted Value EMPNAME_VALUE into Element EmpName.
Created Type Request_TYPE.
Inserted Element EmpNo into Type Request_TYPE.
Inserted Element EmpName into Type Request_TYPE.
C Structure Request successfully imported.
Summary:
No. of Errors: 0
No. of Types created: 1
No. of Elements created: 2
No. of Values created: 3 |
|
Back to top |
|
 |
Beaula |
Posted: Thu Oct 24, 2002 10:29 pm Post subject: Re: Importing C Header Files |
|
|
Apprentice
Joined: 11 Sep 2002 Posts: 39 Location: Infotech, Madhapur,India
|
Beaula wrote: |
I wrote a header file with three elements as:
struct Request{
char EmpNo[6];
char EmpName[8];
};
and saved the file as Request.h and imported the same in MQSI Message Set. The report file showed that the import was sucessful, but when I try to add the imported elements, I find that there are no elements there.
Can you please guide us where we went wrong in importing the C Header Files........ |
Thanks Lisa.
But I have a doubt. The tab Main Header File Name is displayed by MQSI as CSTRUCT.H & Orphan Header File Name as ORPHANS.H and these files are not there on my system. Where do I get them ?....
The error which I get in report file is the struct is not identified. How can I solve this ?. |
|
Back to top |
|
 |
bh |
Posted: Fri Oct 25, 2002 12:17 am Post subject: |
|
|
Acolyte
Joined: 25 Jun 2001 Posts: 61
|
Try this simple sample:
struct InfoPerso
{
char Nom [20];
char Prenom [15];
char DateNaissance [10];
char Telephone [10];
}
And tell me if it doesn't work.
Hope it helps. |
|
Back to top |
|
 |
Lisa |
Posted: Fri Oct 25, 2002 5:27 am Post subject: Importing |
|
|
Master
Joined: 07 Jun 2002 Posts: 287 Location: NJ
|
I believe that you’re referring to the C language binding property.
I hope this helps.
FYI,
The C Language binder property:
Provides the name for a generated header file. This name is only used if you generate language bindings in C. The header file that is produced is typically organized by categories, and produces C structures that refer to WebSphere MQ Integrator message element types. It contains message set component definitions and includes other generated header files.
You should use a format of filename.h and you can use "_" as a separator.
Default: CSTRUCTS.H
The Orphan Header File contains structures for types that are not used in any messages.
You should use a format of filename.h and you can use "_" as a separator.
Default: ORPHANS.H |
|
Back to top |
|
 |
|