[fpc-pascal] Automation problem

2009-02-04 Thread Bart
Hi, I'm trying to interact with MS Word. I started with the example from the wiki, but I'm getting errors and problems. Here's my code: procedure TForm1.GridToWordTable; const ServerName = 'Word.Application'; var Server: Variant; begin DebugLn('GridToWordTable A'); DebugLn('

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

2009-02-04 Thread Jonas Maebe
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 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

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

2009-02-04 Thread Ken G. Brown
At 12:00 PM +0100 2/4/09, fpc-pascal-requ...@lists.freepascal.org apparently wrote: Date: Wed, 4 Feb 2009 10:50:17 +0100 From: Jonas Maebe jonas.ma...@elis.ugent.be Subject: Re: [fpc-pascal] Re: building universal binary To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Message-ID:

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

2009-02-04 Thread Ken G. Brown
I've started my project from the FPC-C-C++ Carbon Application 2.2.0 template, have it compiling nicely now even tho it does not yet run from Finder. Now i would like to change it to a Cocoa app. What settings do I need to change to accomplish this? MacOS X 10.5.6, fpc 2.2.2, Xcode 3.1.2 Thx

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

2009-02-04 Thread Jonas Maebe
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 Rosetta' box is checked in Get Info. Intel or PowerPC shows properly in Activity Monitor.

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 Rosetta' box is checked in Get Info. Intel

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

2009-02-04 Thread Jonas Maebe
On 04 Feb 2009, at 22:29, Ken G. Brown wrote: I've started my project from the FPC-C-C++ Carbon Application 2.2.0 template, have it compiling nicely now even tho it does not yet run from Finder. Now i would like to change it to a Cocoa app. What settings do I need to change to accomplish

[fpc-pascal] dynamic arrays: copy-on-write or not?

2009-02-04 Thread David Emerson
From the reference guide, december 2008 version: Dynamic arrays are reference counted: assignment of one dynamic array-type variable to another will let both variables point to the same array. Contrary to ansistrings, an assignment to an element of one array will be reflected in the other:

[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
MacOS X, 10.5.6, fpc 2.2.2 How can I find the directory path to the executable of the currently executing program from within the program? Or alternately, how can I specify the relative path to a file that is located in the same folder as the application bundle for my currently executing