Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-08

Unit process, example testproc.pp, and identifier poExecuteOnCreate

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rich Pasco

Using the 1.0.6 release, an attempt to compile example program C:\pp\examples\fcl\testproc.pp results in the complaint: testproc.pp(19,34) Error: Identifier not found POEXECUTEONCREATE

What am I missing here? Where is this identifier defined?

- Rich

Reply by email

amorel
to Rich Pasco

I want to use this function: int nanosleep (const struct timespec *REQUESTED_TIME, struct timespec *REMAINING)

I am using this syntax:
function nanosleep(args: ??):longint;cdecl;external 'c';

How would the exact syntax be, do I need to declar the parameters beforehand also using external 'c'? And how would a const struct timespec *REQUESTED_TIME be declared? As I see it it is a constant pointer of name requested_time and of type timespec, time.h shows this btw:

/* Pause execution for a number of nanoseconds. */ extern int nanosleep (__const struct timespec *__requested_time,

                      struct timespec *__remaining) __THROW;

Thanks

Reply by email