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

Home » Public Forums » archive » Header File *.h?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Header File *.h? [message #24539] Thu, 05 April 2001 06:01 Go to next message
Dominik[1] is currently offline  Dominik[1]
Messages: 46
Registered: April 2001
Member
Do I need a special format in the file, like a begin and an end?

Dominik

"David Fanning" <davidf@dfanning.com> schrieb im Newsbeitrag
news:MPG.15361a3b1e3be4b1989dcd@news.frii.com...
> Dominik (dpaul@ukl.uni-freiburg.de) writes:
>
>> another question from me (its because I am new to IDL and have to use
some
>> code frome sobody else). I never find a header file (*.h) while using
IDL.
>> But the source I have to use is using a header file, that means there is
a
>> header file *.h with some structure declerations. But IDL ignore it.
>> Does somebody know, how to use such a header file?
>
> Unless a file has a *.pro or *.sav extension, IDL cannot
> "find" it automatically. The person who wrote the *.h file
> for IDL had been to too many C programming workshops. :-)
>
> The proper way to write a file with structure declarations
> is to give the file the "name" of the structure with __DEFINE.PRO
> (two underscores) appended to it. Put this file in the !PATH
> and IDL will find it automatically when you create the structure
> in the code.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
Re: Header File *.h? [message #24541 is a reply to message #24539] Thu, 05 April 2001 06:14 Go to previous messageGo to next message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Dominik wrote:
>
> Helle there,
>
> another question from me (its because I am new to IDL and have to use some
> code frome sobody else). I never find a header file (*.h) while using IDL.
> But the source I have to use is using a header file, that means there is a
> header file *.h with some structure declerations. But IDL ignore it.
> Does somebody know, how to use such a header file?
>
> Thanks
>
> Dominik

... Or you include the header file with
@path/file.h;

As Reimar Bauer once found out, the ; is important here.

Martin



--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
Re: Header File *.h? [message #24545 is a reply to message #24539] Thu, 05 April 2001 05:59 Go to previous messageGo to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Dominik (dpaul@ukl.uni-freiburg.de) writes:

> another question from me (its because I am new to IDL and have to use some
> code frome sobody else). I never find a header file (*.h) while using IDL.
> But the source I have to use is using a header file, that means there is a
> header file *.h with some structure declerations. But IDL ignore it.
> Does somebody know, how to use such a header file?

Unless a file has a *.pro or *.sav extension, IDL cannot
"find" it automatically. The person who wrote the *.h file
for IDL had been to too many C programming workshops. :-)

The proper way to write a file with structure declarations
is to give the file the "name" of the structure with __DEFINE.PRO
(two underscores) appended to it. Put this file in the !PATH
and IDL will find it automatically when you create the structure
in the code.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Header File *.h? [message #24616 is a reply to message #24545] Thu, 05 April 2001 10:35 Go to previous message
Dominik[1] is currently offline  Dominik[1]
Messages: 46
Registered: April 2001
Member
Is there also a possibility to save system variables, so IDL automaticly
knows them?

Dominik

"David Fanning" <davidf@dfanning.com> schrieb im Newsbeitrag
news:MPG.15361a3b1e3be4b1989dcd@news.frii.com...
> Dominik (dpaul@ukl.uni-freiburg.de) writes:
>
>> another question from me (its because I am new to IDL and have to use
some
>> code frome sobody else). I never find a header file (*.h) while using
IDL.
>> But the source I have to use is using a header file, that means there is
a
>> header file *.h with some structure declerations. But IDL ignore it.
>> Does somebody know, how to use such a header file?
>
> Unless a file has a *.pro or *.sav extension, IDL cannot
> "find" it automatically. The person who wrote the *.h file
> for IDL had been to too many C programming workshops. :-)
>
> The proper way to write a file with structure declarations
> is to give the file the "name" of the structure with __DEFINE.PRO
> (two underscores) appended to it. Put this file in the !PATH
> and IDL will find it automatically when you create the structure
> in the code.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: summation problem
Next Topic: long to float

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

Current Time: Wed Oct 08 15:37:00 PDT 2025

Total time taken to generate the page: 0.00556 seconds