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

Home » Public Forums » archive » Re: call_external: passing string from IDL to C
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: passing string from IDL to C [message #31958 is a reply to message #31956] Wed, 28 August 2002 13:52 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
selwyn yee wrote:

> Hi,
>
> I am trying to pass an IDL string to C using call_external. My setup
> is:
>
> IDL 5.5
> Visual C++ 6.0
> Windows 2000 Workstation
> P4 2Ghz, 512 mb
>
Deae Selwyn

I belive you can only pass byte arrays. And if you have more
problems you should have a look at Ronn Klings book about C
and idl.

http://www.kilvarock.com/books/callingCfromIDL.htm

best regards

Reimar




> I can't even get IDL's example to pass a string from IDL to C. I
> built the DLL from \RSI\IDL55\external\C\string_array.c. Then I debug
> the DLL from Visual Studio, and run string_array.pro. In debug, C
> receives and IDL_STRING structure with the proper length of the string
> (not counting NULL char). But you cannot see the string itself. You
> see
>
> "CXX0030: Error: expression cannot be evaluated"
>
> Has anyone gotten the example routines to work?
>
> Thanks,
> Selwyn Yee

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Previous Topic: Optimal interpolation
Next Topic: Re: Why does 0.8 = 0.80000001 ?

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

Current Time: Fri Oct 24 11:47:59 PDT 2025

Total time taken to generate the page: 1.60270 seconds