Syntax for R. Franks extproc_define() in IDL 6.1 [message #43742] |
Fri, 22 April 2005 12:58 |
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
|
|
|