[fpc-pascal] Re: How to include Carbon.h?

2007-04-20 Thread Milan Marusinec
BlueCat wrote: Hello, Pascal folks, I'm using FPC 2.0.4 on MacOSX 1.4.9 PPC and trying to write a Pascal library that is externally called from REALbasic (Rb). But Rb needs Carbon.h header included in dylibs which are called by Rb programs. To include Carbon.pas in your fpc-mac os X project

Re: [fpc-pascal] Re: How to include Carbon.h?

2007-04-20 Thread Jonas Maebe
On 19 apr 2007, at 12:57, Milan Marusinec wrote: BlueCat wrote: Hello, Pascal folks, I'm using FPC 2.0.4 on MacOSX 1.4.9 PPC and trying to write a Pascal library that is externally called from REALbasic (Rb). But Rb needs Carbon.h header included in dylibs which are called by Rb programs

Re: [fpc-pascal] Re: How to include Carbon.h?

2007-04-20 Thread BlueCat
Milan, Jonas, Thanks a lot. Jonas Maebe-2 wrote: > > [snip] > This is incorrect. That version is very outdated and contains several > errors. As of 2.0.4, FPC contains the common Mac OS interfaces for > FPC, GPC and MW, which contain many more Pascal headers than what > Apple distributes

[fpc-pascal] Re: How to include Carbon.h?

2007-04-20 Thread Milan Marusinec
BlueCat wrote: I have an additional question to Milan. Google tells me that there is AggPas program by Milan, maybe you :-) Does this application use QuickTime API? If QT or MPEG2 file can be easily accessed by FPC, porting my application to Lazarus become quite a favourable choice (but it mus

[fpc-pascal] Problem with DateTimeToStr at midnight?

2007-04-20 Thread fpc
Hello, i use DateTimeToStr from unit sysutils. At midnight the Date and Time format is wrong (time is missing), is n't? For example: 20-4-07 23:57 20-4-07 23:58 20-4-07 23:59 21-4-07 21-4-07 00:00 21-4-07 00:01 21-4-07 00:02 The line "21-4-07" ist at 00:00:00 and the line "21-4-07 00:00" is lat

Re: [fpc-pascal] How to include Carbon.h?

2007-04-20 Thread BlueCat
"Ing. Milan MaruĊĦinec" wrote: > > [snip] > Yes I wrote AggPas. It uses QuickTime in fpc on mac for some image > loadings. Looking at the sources of the Apple UPI i see file > "QuickTimeStreaming.p". Maybe there is what you need. > Don't forget to pass -k"-framework Carbon -framework QuickTime"

Re: [fpc-pascal] How to include Carbon.h?

2007-04-20 Thread BlueCat
Ingemar Ragnemalm wrote: > > [snip] > Another problem when mixing languages is the Pascal RTL. You might need > to link with that. (That is not necessarily trivial, I am having trouble > with that myself.) But that doesn't sound like your problem, right? > Thanks to you all, my library is ab