Re: [fpc-pascal] documentation for file handling, reset, rewrite, errors?

2009-02-11 Thread Ken G. Brown
Thx! At 9:37 AM +0100 2/11/09, Michael Van Canneyt apparently wrote: >On Tue, 10 Feb 2009, Ken G. Brown wrote: > >> I cannot seem to find the good docs for the file handling routines assign, >> rewrite and reset in the pdf's that came with fpc-2.2.2. Where might the >

[fpc-pascal] documentation for file handling, reset, rewrite, errors?

2009-02-10 Thread Ken G. Brown
o sorta work, from here: <http://ubuntuforums.org/showthread.php?t=656110>, 2nd message. Is that a good way to do output to a printer? Thx again for any pointers. Ken G. Brown ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Origin of FPC features

2009-02-10 Thread Ken G. Brown
From: <http://faculty.frostburg.edu/cosc/htracy/COSC450/MODULES/PasM2Ada.htm> re: Pascal It was originally designed, by one man, Nicholas Wirth, for teaching structured programming. Ken G. Brown At 8:56 PM -0800 2/9/09, leledumbo apparently wrote: >I'm writing a paper about

Re: [fpc-pascal] troubles adding a second target

2009-02-07 Thread Ken G. Brown
At 11:19 AM +0100 2/7/09, Jonas Maebe apparently wrote: >On 07 Feb 2009, at 09:20, Ken G. Brown wrote: > >>MacOS X 10.5.6, fpc 2.2.2, Xcode 3.1.2 >> >>I have a working project started from the fpc supplied template. >> >>I've tried to add a second target fo

[fpc-pascal] troubles adding a second target

2009-02-07 Thread Ken G. Brown
CURRENT_VARIANT)/$(CURRENT_ARCH)/$(INPUT_FILE_BASE).s Now when I try to build the new target, I get the following error: /bin/sh -c /bin/sh: -c: option requires an argument Where does the custom script have to be set up? How does this work? Or is there a better way to create a good new target? Thx for

Re: [fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

2009-02-06 Thread Ken G. Brown
At 4:05 PM + 2/6/09, Frank Peelo apparently wrote: >Ken G. Brown wrote: >>Basically from point of sale system running on Macintosh, I needed >>to pick up a file with a known name located in the same folder as >>the application bundle, and process it for printing in a cust

Re: [fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

2009-02-06 Thread Ken G. Brown
n the app bundle package using whatever other routines necessary as Jonas indicated. Ken G. Brown At 7:25 AM -0600 2/6/09, Travis Siegel apparently wrote: >So, as someone who only uses terminal apps written in fpc ( since ibuilder >isn't really that usable and writing interface genera

Re: [fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

2009-02-05 Thread Ken G. Brown
Thanks a bunch for all the help! My legacy OS 9 app is now upgraded to OS X and working! It put up a hell of a fight but with all your help, the obstacles have been overcome. Awesome! Ken G. Brown At 9:51 PM +0100 2/5/09, Jonas Maebe apparently wrote: ><> >You have to allocate m

Re: [fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

2009-02-05 Thread Ken G. Brown
At 9:51 PM +0100 2/5/09, Jonas Maebe apparently wrote: >On 05 Feb 2009, at 21:29, Ken G. Brown wrote: > >>So far I have the following external definitions: > >All external definitions you need are already in the MacOSAll unit shipped >with FPC. > >>Function CFStr

Re: [fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

2009-02-05 Thread Ken G. Brown
using for the myBundlePathString type? And I notice that CFStringGetFileSystemRepresentation is only available for 10.4 and newer. What do i need to do instead if wanting to deploy to 10.3.9? Thx again for all the help, sooo close! Ken G. Brown At 6:24 PM +0100 2/5/09, Jonas Maebe apparently

Re: [fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

2009-02-05 Thread Ken G. Brown
Whew! Thx! I was part way through all that but wasn't sure what I could pass to reset(); Digging through it now. I haven't dealt with this stuff before. Ken At 6:24 PM +0100 2/5/09, Jonas Maebe apparently wrote: >On 05 Feb 2009, at 17:03, Ken G. Brown wrote: > >>Thx for t

Re: [fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

2009-02-05 Thread Ken G. Brown
Thx for the quick response! I think I'm almost there. I seem to have a bundlePath : CFURLRef; but I don't quite know what to do with it. How do I convert it to something I can use in a Reset() to open a file? Thx, Ken G. Brown At 10:29 AM +0100 2/5/09, Jonas Maebe apparently wrote:

[fpc-pascal] specifying the relative path to a file that is located in the same folder as the application bundle?

2009-02-04 Thread Ken G. Brown
program? Using ./filename does not appear to work for me. Are there file and directory type utilities available? Where can I read up on them? Thx for any tips, Ken G. Brown ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Re: building universal binary

2009-02-04 Thread Ken G. Brown
At 10:30 PM +0100 2/4/09, Jonas Maebe apparently wrote: >On 04 Feb 2009, at 18:48, Ken G. Brown wrote: > >>However, when I try running from Finder, I get a short few characters out the >>serial port then the program dies. This is whether or not the 'run under >>R

[fpc-pascal] what needs changed to compile going from Carbon to Cocoa

2009-02-04 Thread Ken G. Brown
Thx for any tips, Ken G. Brown ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: building universal binary

2009-02-04 Thread Ken G. Brown
db1-8882-e4b26e09c...@elis.ugent.be> >Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > >On 03 Feb 2009, at 23:33, Ken G. Brown wrote: > >>>> Have a Pascal program calling some C code from a static library I >>>> build in a separate project so I can u

[fpc-pascal] Re: building universal binary

2009-02-03 Thread Ken G. Brown
> > Have a Pascal program calling some C code from a static library I > > build in a separate project so I can use the debugger. > >You can also build it in a separate target of the same project and >then change the target-specific flags for that C library (as in the >"FPC-C-C++ Carbon Applicati

[fpc-pascal] Re: building universal binary

2009-02-03 Thread Ken G. Brown
Further: it appears that lipo cannot handle app bundles, so if I run it on the executable itself, it says it is ok, has both i386 and ppc. So I guess I'm missing something that tells Finder it is a universal binary, but what? Thx, Ken G. Brown At 12:21 PM -0700 2/3/09, Ken G. Brown appar

[fpc-pascal] building universal binary

2009-02-03 Thread Ken G. Brown
not find what to do. Any tips appreciated. Thx, Ken G. Brown ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Breakpoints in certain procedure don't get hit.

2009-01-29 Thread Ken G. Brown
To: FPC-Pascal users discussions >Message-ID: <83ce8c91-7c3b-4b16-8ada-f46b0352b...@elis.ugent.be> >Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > >On 29 Jan 2009, at 06:47, Ken G. Brown wrote: > >> In Xcode 3.1.2 I'm having trouble ge

[fpc-pascal] Breakpoints in certain procedure don't get hit.

2009-01-28 Thread Ken G. Brown
ary in a separate project, then linked into the pascal project. I'm running out of ideas. Anyone have some new things to try? Thx for any tips. Ken G. Brown ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Xcode access to fpc documentation

2009-01-27 Thread Ken G. Brown
Aha! That's why the unix find of FPCMacOSAll did not find anything either! It's not there anymore. That clears up a couple mysteries for me. Thx, Ken G. Brown At 9:05 AM +0100 1/27/09, fpc-pascal-requ...@lists.freepascal.org apparently wrote: >Date: Tue, 27 Jan 2009 09:42:0

[fpc-pascal] Xcode access to fpc documentation

2009-01-26 Thread Ken G. Brown
moment Spotlight does not find them for me. Thx for any tips, Ken G. Brown ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Calling C functions from FPC

2009-01-26 Thread Ken G. Brown
Thank you, that helps. And I have found documentation in the FPC 2.2.2 download that talks about the Xcode integration templates that handle initial project setup. I was wondering about that as well. Ken G. Brown At 8:53 AM +0100 1/26/09, fpc-pascal-requ...@lists.freepascal.org apparently

[fpc-pascal] Calling C functions from FPC

2009-01-25 Thread Ken G. Brown
to watch out for? Thx for any tips, Ken G. Brown ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] PROJECT_DERIVED_FILE_DIR

2006-11-03 Thread Ken G. Brown
Thank you very much, that has helped a lot. The project files readme has a good description of how XCode's build system works, which also has helped. Erling's template specifies fpc 2.1.1 but the only one I can find for PowerPC is 2.0.4. Is there a later one for PowerPC somewhere? Thx, Ken >Dat

[fpc-pascal] PROJECT_DERIVED_FILE_DIR

2006-11-02 Thread Ken G. Brown
With fpc, in trying to compile an example brought in from CW, and using XCode 2.4.1 on a Dual 2.0 G5 10.4.8, I have started with a Carbon template. In the target rules for processing pascal source files, I see a custom script indicated to use output files $(PROJECT_DERIVED_FILE_DIR)/$(INPUT_FILE

Re: [fpc-pascal] mixing C and Pascal and function pointers

2006-10-20 Thread Ken G. Brown
I've been experimenting with calling C routines in a library from Pascal. This seems to work: In the Pascal source do Procedure croutine; cdecl; alias : '_croutine'; External; If there is trouble finding the routines when building, you can give the location of the routines in the Pascal so

[fpc-pascal] Re: fpc-pascal Digest, Vol 26, Issue 20

2006-10-09 Thread Ken G. Brown
ARLIST_FVCOMMON & > THREADVARLIST_MEMORYundefined symbols while linking >To: FPC-Pascal users discussions >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > >On 06 Oct 2006, at 18:26, Ken G. Brown wrote: > >

[fpc-pascal] THREADVARLIST_FVCOMMON & THREADVARLIST_MEMORY undefined symbols while linking

2006-10-06 Thread Ken G. Brown
Downloaded fpc 2.0.4 yesterday and I am trying to compile a legacy CW Pro 2 app on Mac 10.4.8 with Xcode 2.4. I am getting undefined symbols THREADVARLIST_FVCOMMON & THREADVARLIST_MEMORY when trying to link, and I have no clue how to get past this problem. I searched my hard drive and found them