Re: Call_External problem under win95 [message #11260] |
Wed, 18 March 1998 00:00 |
Reinhold Schaaf
Messages: 10 Registered: March 1998
|
Junior Member |
|
|
<HTML>
<TT></TT> <TT></TT>
<P><TT>c.c.mclean@ed.ac.uk wrote:</TT>
<BLOCKQUOTE TYPE=CITE><TT>Hi,</TT><TT></TT>
<P><TT>I seem to be having problems getting the call_external example (dlltst32)</TT>
<BR><TT>in IDL 5 to work.</TT><TT></TT>
<P><TT>If I compile the c source using either Borland C 4.5 or Visual C
5.0,</TT>
<BR><TT>the DLL is created OK, but when it is called from the IDL program
I get an</TT>
<BR><TT>error message:-</TT><TT></TT>
<P><TT> "CALL_EXTERNAL: Entry TestOne not found in DLL dlltst32.dll"</TT><TT></TT>
<P><TT>I seem to remember from the newsgroup that I need to create a .DEF
file</TT>
<BR><TT>for some obscure reason, but don't have a clue how to create it.</TT><TT></TT>
<P><TT>Any advice for a novice windows programmer would be most welcome.</TT><TT></TT>
<P><TT>Thanks</TT><TT></TT>
<P><TT>Calum.....</TT><TT></TT>
<P><TT>-----== Posted via Deja News, The Leader in Internet Discussion
==-----</TT>
<BR><TT><A HREF="http://www.dejanews.com/">http://www.dejanews.com/</A>
Now offering spam-free web-based newsreading</TT></BLOCKQUOTE>
<TT></TT>
<P><TT>Hi,</TT><TT></TT>
<P><TT>there is a correct dlltst32.def file in IDL50\external\sharelib.
In case</TT>
<BR><TT>you deleted it, I include it:</TT><TT></TT>
<P><TT>-------------------</TT><TT></TT>
<P><TT>LIBRARY dlltst32</TT>
<BR><TT>DESCRIPTION 'Demonstrates use of IDL's CALL_EXTERNAL routine'</TT><TT></TT>
<P><TT>CODE PRELOAD MOVEABLE DISCARDABLE</TT>
<BR><TT>DATA PRELOAD MOVEABLE SINGLE</TT><TT></TT>
<P><TT>EXPORTS TestOne @1</TT>
<BR><TT> TestTwo @2</TT>
<BR><TT> TestThree @3</TT>
<BR><TT> TestFour @4</TT><TT></TT>
<P><TT>---------------------</TT><TT></TT>
<P><TT>Have fun,</TT><TT></TT>
<P><TT>Reinhold</TT><TT></TT>
<P><TT>--</TT>
<BR><TT> ************************************************************ * </TT>
<BR><TT> Reinhold Schaaf</TT>
<BR><TT> Ettighofferstr. 22</TT>
<BR><TT> 53123 Bonn</TT>
<BR><TT> Germany</TT><TT></TT>
<P><TT> Tel.: 0049-228-625713</TT>
<BR><TT> Email: schaaf@astro.uni-bonn.de</TT>
<BR><TT> ************************************************************ * </TT>
<BR> </HTML>
|
|
|