R. Frank's extproc call for windows dll's (actually an old subject) [message #43563] |
Fri, 22 April 2005 07:12  |
darmstr
Messages: 9 Registered: April 2005
|
Junior Member |
|
|
I'm trying to use Randall Frank's idltools to access a dll for the
Tektronix implementation of VXIpnp (see http://www.vxipnp.org/ or
http://www.tek.com/site/sw/detail/1,1059,3485,00.html) a subset of the
VXIpnp standard referred to as TekVISA. There are some
instrument/application specific details about this process that can
skipped for now, but in summary so far I'm having no luck, and IDL
continues to crash whenever I try "extproc_define()," however
"extproc_query" accesses the DLM no problem without crashing IDL. I've
tried testing the examples in the readme file using the msvcrt.dll and
user32.dll, and these also result in crashes of IDL. These tests are
done on a Tektronix version of Win2k that resides on the PC side of a
Tektronix TDS7154B oscilloscope. I realize this is a fairly specialized
application and it may be difficult for someone to provide guidence
here, but does anyone have any ideas why the example extproc_define()
calls lead to an IDL crash? I've programmed in IDl since about 1991,
but have essentially no experience with call_external, dll's, etc.
Thanks,
Darrell
|
|
|
|
Re: R. Frank's extproc call for windows dll's (actually an old subject) [message #43779 is a reply to message #43563] |
Mon, 25 April 2005 15:00  |
darmstr
Messages: 9 Registered: April 2005
|
Junior Member |
|
|
Hi Ronn,
I didn't see your reply until 4/25, as I posted a simpler question
following this one that several people responded to. Yes, the source
code needs to be recompiled, and Karl Schultz at RSI did this for me.
In short, the examples using msvcrt.dll and user32.dll in the readme
file now work. You may want to recompile the source code on your web
site so others can use R. Frank's extproc_define, etc. with newer
versions of IDL.
Although those examples now work, I'm having some trouble using
extproc_define with the TekVISA dll. I can define commands OK, and
extproc_query on those commands seems to make sense, but I can't yet
communicate with the scope. When I know a bit more about this problem I
might post another question or two.
Thanks,
Darrell
|
|
|
|