Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!julius.cs.uiuc.edu!wuarchive!uunet!crdgw1!sunburst.crd.ge.com!inoue From: inoue@sunburst.crd.ge.com Newsgroups: comp.windows.x.motif Subject: Motif and C++ (Mrm) Message-ID: <14826@crdgw1.crd.ge.com> Date: 13 Dec 90 21:40:39 GMT Sender: news@crdgw1.crd.ge.com Reply-To: inoue@sunburst.crd.ge.com () Distribution: usa Organization: General Electric Corp. R&D, Schenectady, NY Lines: 36 I am starting programming Motif in C++. One thing is not clear, please help me. I am using Xm and Mrm of Mr. Kee Hinckley's patch version. Everything seems OK so far as far as I am using only C++. When I tried to use uil, things happened in C++ source. If I include in a C++ file, syntax errors occure. If I include instead of MrmAppl.h, it seems OK. The reason why MrmAppl.h is not good for C++ compiler is that MrmAppl.h includes , XmP.h includes , Traversal.h includes , and in ShellP.h the reserved word 'class' is used in a struct member(line 302). I had thought that ...P.h files are supposed to be included by widget defining file or libreries and not by application files. I think including MrmAppl.h is not legal but I am not sure. Can anyone tell me the policy? I first included MrmAppl.h file just because demo programs under /motif/demos/ directories are using that. After encountering the systax error trouble, I changed it to MrmPublic.h from my intuition, but actually Mrm.h was also OK for my petit program. In using C not C++, no problem was happend for using MrmAppl.h. Please tell me the policy and if possible, why motif demos are including MrmAppl.h. Should I change all #include lines from MrmAppl.h to MrmPublic.h in C files also? Takeshi Inoue (T.I.) G.E. CR&D (518)387-5694