<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META content="MSHTML 5.00.2721.2900" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2>
<BLOCKQUOTE>
<DIV><FONT color=#ff0000>One other thing related to my ignorance of
programming. I could not use the 1.3.1 API untill I had edited the header file
to select the appropriate calling convention for my PC (winNT
C++)<BR># define
MANGLE(__arg)<X-TAB> </X-TAB><X-TAB> </X-TAB>CONCAT(__arg,_)<BR>Is
this because I'm not using the API correctly or just becuase I didn't read the
installation note properly?<BR></FONT></FONT></DIV></BLOCKQUOTE></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=453590612-28022000>The
coice of MANGLE() you made is the correct one if you will only be calling the
NeXus<FONT color=#0000ff face=Arial size=2><SPAN
class=453590612-28022000></SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=453590612-28022000><FONT
color=#0000ff face=Arial size=2><SPAN
class=453590612-28022000>interface from C</SPAN></FONT></SPAN></FONT><FONT
color=#0000ff face=Arial size=2><SPAN class=453590612-28022000> - we will
add a comment about choosing the correct form of MANGLE()
with</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=453590612-28022000>the
next release. </SPAN></FONT><FONT color=#0000ff face=Arial size=2><SPAN
class=453590612-28022000>On the PC FORTRAN routines call FORTRAN routines in a
different way ("stdcall")</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=453590612-28022000>to the
way C functions call each other. If you are mixing calls between C and FORTRAN
routines (as we</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=453590612-28022000>do for
the NeXus FORTRAN interface), you need to make C and FORTRAN decide on
a common calling method;</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=453590612-28022000>this
can either be done by compiler flags or by prefixing the C routines with
"__stdcall" to make them</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=453590612-28022000>use
the FORTRAN way.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=453590612-28022000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=453590612-28022000>Regards,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=453590612-28022000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=453590612-28022000>Freddie </SPAN></FONT></DIV>
<P><FONT face=Arial size=2>--</FONT> <BR><FONT face=Arial size=2>Freddie
Akeroyd
Tel: <SPAN class=453590612-28022000>+44 </SPAN>1235 445457</FONT>
<BR><FONT face=Arial size=2>ISIS
Facility
Fax: <SPAN class=453590612-28022000>+44 </SPAN>1235 445720</FONT> <BR><FONT
face=Arial size=2>Rutherford Appleton Laboratory</FONT> <BR><FONT face=Arial
size=2>Chilton, DIDCOT, OX11 OQX, GB <FONT
color=#000000><A href="http://www.isis.rl.ac.uk/"
target=_blank>http://www.isis.rl.ac.uk/</A></FONT></FONT> </P></BODY></HTML>