comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Syntax for R. Franks extproc_define() in IDL 6.1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Syntax for R. Franks extproc_define() in IDL 6.1 [message #43742] Fri, 22 April 2005 12:58
darmstr is currently offline  darmstr
Messages: 9
Registered: April 2005
Junior Member
OK, nobody attempted my first question about using the extproc_define()
procedure on the Tektronix scope - not specific enough I suppose. I
think I've narrowed it down a bit as I'm now beyond the
"crashes-IDL-everytime-I-try-it" stage. The problem may be a simple
matter of correct syntax, but I'm not sure. If I enter

result=EXTPROC_DEFINE("mysin","msvcrt.dll","sin","d(d) ",/CDECL)

exactly as shown from the examples in the readme file at IDL's command
prompt, IDL crashes. If I'm doing something totally stupid, ridicule is
perfectly acceptable, as long as I get things to work in the end.

For whatever it's worth, here are a few other variants and their
results:

IDL> test=EXTPROC_DEFINE(mysin,'msvcrt.dll',sin,d(d),/CDECL)
% Variable is undefined: D. (no surprise here)
% Execution halted at: $MAIN$

IDL> test=EXTPROC_DEFINE(mysin,'msvcrt.dll',sin,'d(d)',/CDECL)
% Internal error: bad param in IDL_KWCleanup.
% Execution halted at: $MAIN$

Pretty much any other way one can enter the above - using single
quotes, double quotes, combinations of ' and ", variables predefined as
strings (e.g., then enter: err =
EXTPROC_DEFINE(idlname,dllfilename,dllfuncname,funcsig)[,/CD ECL]), or
whatever else, crashes IDL.

Any ideas?

Darrell
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Is there a debug tool in IDL?
Next Topic: Re: timers without widgets

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 07:22:25 PDT 2025

Total time taken to generate the page: 1.35943 seconds