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

Home » Public Forums » archive » CALL_EXTERNAL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: CALL_EXTERNAL [message #31625 is a reply to message #1268] Tue, 30 July 2002 19:26 Go to previous messageGo to previous message
Mark Rivers is currently offline  Mark Rivers
Messages: 49
Registered: February 2000
Member
Zakaria Aygula <zaygula@med.miami.edu> wrote in message
news:c934bc5c.0207300643.123066ce@posting.google.com...
> Hi all,
>
> I am not able to pass below strings from IDL 5.5 to c/c++ interface
> running on Red Hat Linux 7.3 2.96-110. The same code worked well on
> IDL 5.4 on solaris
> The fragment of the code is shown below.
>
> FUNCTION vgam_wrap_do_query, query, dest
> FORWARD_FUNCTION lib_name, lib_func_name

The way IDL passes strings to CALL_EXTERNAL has changed between IDL 5.4 and
IDL 5.5, because the definition of an IDL_STRING structure in export.h has
changed. This is the IDL 5.5 definition:
typedef int IDL_STRING_SLEN_T;
#define IDL_STRING_MAX_SLEN 2147483647
typedef struct { /* Define string descriptor */
IDL_STRING_SLEN_T slen; /* Length of string, 0 for null */
short stype; /* type of string, static or dynamic */
char *s; /* Addr of string */
} IDL_STRING;

In IDL 5.4 IDL_STRING_SLEN_T was "short", now it is "int", so strings can be
much longer now. CALL_EXTERNAL will still work, but you need to recompile
your shareable library with the new version of export.h

Mark Rivers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: problems accessing Ken Bowman's IDL page?
Next Topic: Re: From tvscale to cgImage, puzzling feature in the plot

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

Current Time: Wed Oct 08 14:32:43 PDT 2025

Total time taken to generate the page: 0.00452 seconds