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 » WebSphere Message Broker (ACE) Support » Importing C Header Files

Post new topic  Reply to topic
 Importing C Header Files « View previous topic :: View next topic » 
Author Message
Beaula
PostPosted: Thu Oct 24, 2002 4:57 am    Post subject: Importing C Header Files Reply with quote

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
View user's profile Send private message Send e-mail
Lisa
PostPosted: Thu Oct 24, 2002 8:00 am    Post subject: Import Reply with quote

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
View user's profile Send private message Send e-mail
Beaula
PostPosted: Thu Oct 24, 2002 10:29 pm    Post subject: Re: Importing C Header Files Reply with quote

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
View user's profile Send private message Send e-mail
bh
PostPosted: Fri Oct 25, 2002 12:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Lisa
PostPosted: Fri Oct 25, 2002 5:27 am    Post subject: Importing Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Importing C Header Files
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.