Quoting Lv <[EMAIL PROTECTED]>:

> here are available fits format library sources.
> "http://fits.gsfc.nasa.gov/fits_libraries.html";
> 
> What would be the easiest path to incorporate as a unit or library into 
> lazarus or FPC?
> 

You can write a Pascal unit that will have the API and read it from the library.
Thats might be a lot of work (usually if h2pas does not work well :( ), but it
will give you native support.

> C C++ C# will remain forever lost to me so the only options i am willing 
> to try and convert is Java/perl/Fortran/Python.
> 
> What about the Perl option?
> Is it possible to call a Perl program from Lazarus?
> Perl is quite platform independent but slow, but I can live with that.
> 
> I find the SHELL command as a real pain to pass variables between Pascal 
> /Lazarus and the SHELL program.
> Is there any way to communicate lazarus variables and arrays with SHELL
> variables without writing and reading to and from files?

A short note, an environment variables are not very safe to use, because anyone
can change them to whatever they wishes.

Regardless of that, try to use either pipe to an output. There are other ways
such as signals that can help you, but as I wrote above, the best way, alto it
will take a lot of work, will be to create a unit that will read the functions
from the library and will give you the native use with it in Pascal.

Ido




_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to