[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Header File *.h?
- Subject: Re: Header File *.h?
- From: davidf(at)dfanning.com (David Fanning)
- Date: Thu, 5 Apr 2001 06:59:56 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <email@example.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:24377
Dominik (firstname.lastname@example.org) 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.
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: email@example.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155