I was recently placed in an awkward position. I needed a program to
analyze psychophysical data. The program I used to use was 20 years
old, written in Commodore VIC-20 BASIC. An attempt to rewrite it in
RB failed due to its overuse of GOTOs within and between subroutines
(which needed to be done back then). I found a C library that would
do the job, but that meant that I either had to write the rest of the
program with XCode (which i hadn't touched in a few years), rewrite
the code in RB (which would have been painful), or put the C code in
a plugin (which was impossible due to the need to pass and return
floating-point arrays). I was stumped.
Then it hit me. Why not compile the C code as a command-line tool in
XCode, then call that program using the Shell class in REALbasic?
Even with adding a simple GUI, the total programming time: 10 minutes!!
Once again, REALbasic was a real time-saver, providing a simple
solution to a complex problem.
Scott B. Steinman, O.D., Ph.D., F.A.A.O.
Professor, Southern College of Optometry
Author, "Visual Programming with Prograph CPX", Manning/Prentice-
Hall, 1995 (www.manning.com/steinman).
Author, "Foundations of Binocular Vision", McGraw-Hill, 2000
(books.mcgraw-hill.com/cgi-bin/pbg/0838526705.html)
1245 Madison Avenue
Memphis, TN 38104-2222
steinman at sco.edu
"Those who know don't talk. Those who talk don't know." - The Tao
Actual post to the Web: "But like I said there to dumb to know any
better."
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>