Xref: utzoo comp.lang.c++:13531 comp.windows.x:36567 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!bcstec!yak!sag5004 From: sag5004@yak.COM (Stuart Galt) Newsgroups: comp.lang.c++,comp.windows.x Subject: C++ and X Keywords: C++ and X How to Message-ID: <202@yak.COM> Date: 17 May 91 22:13:30 GMT Followup-To: poster Distribution: usa Organization: Boeing Computer Services, Seattle Lines: 34 I would like to know if anyone out there in netsville is able to make c++ and X work together. I am currently running on a apollo 4500 SR10.3. I know about doing thins like: extern "C" { #include .... } My problem seem to be that c++ is very picky about argument types and likes all of the functions to be prototyped eg //extern Widget XtInitialize(); /* does not cut it....*/ // /* String name; */ // /* String class; */ // /* XrmOptionsDescRec options; */ // /* Cardinal num_options; */ // /* Cardinal *argc; */ /* returns count of args not processed */ // /* char **argv; */ This seems to kind of work... extern Widget XtInitialize( String, String, XrmOptionDescRec, Cardinal, Cardinal*, char**); I would love to talk (email) someone that has actually got things working. Part of my problem is that I am new to both c++ and X. Any bits of advice/code would be gladly taken. thanks in advance... Stuart Galt --> sag5004@yak.boeing.com Boeing Computer Services phone (206) 865-3764