Re: portabilty of programs written under IDL3.6.1 to IDL5.2 [message #14539 is a reply to message #14447] |
Tue, 09 March 1999 00:00   |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Vekemans Bart wrote:
>
> Years ago our Institute purchased IDL3.6.1 and since then
> I am working on a program that simultaneously can control
> several hardware cards by means of CALL_EXTERNAL, which
> invokes functions of the DLL libraries delivered with
> the various cards. Until now I was using 16-bit DLLs, as
> this version of IDL is restricted to calls to 16-bit DLLs
> in Windows.
> Unfortunately, new cards are now delivered with 32-bit DLLs,
> and as such I cannot use the delivered libraries of these
> new cards. I have now the following question. Is my program
> portable from IDL3.6.1 to IDL5.2 or has the programming
> environment changed so much that I have to rewrite my
> whole program when I want to upgrade to IDL5.2 ?
> I want to try to find someone who experienced the same problems,
> and I would be very gratefull to her/him if she/he wants
> to share her/his experience about this problem.
>
> Waiting for someone to answer,
>
> greetings from Antwerpen (Belgium, Europe),
>
> Bart Vekemans
Bart -
Porting your programs shouldn't be much of a problem, though you
will have to change your WIDGET_BASE() calls for top-level bases,
as well as calls to XMANAGER, in your widget programs. RSI introduced
the /NO_BLOCK keyword which gives you back your command-line after
registering a widget, and this necessitates the above changes. Also,
RSI changed the behavior of modal widgets, and moved this /MODAL
keyword. The changes are minimal, but if you have a large collection
of widget programs it may take some time to update them. Be aware
that until you do most of your widget programs won't work.
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|