[fpc-pascal]Temporary file names under GO32

Aitor Santamar´┐Ża aitor.sm at wanadoo.es
Mon Nov 26 15:21:54 CET 2001


What can I be doing bad here?

program test;

uses strings;

Function tmpnam (s : pchar) : pchar;cdecl;external 'c';

var
   s: pchar;

begin
        new (s);
        writeln (strpas(tmpnam(s)))
end.



 test.pas(5,55) Error: Creation of Dynamic/Shared Libraries not supported



Aitor

> > > > Hola,
> > > >
> > > > >Has anyone ever written a function to get a temporary unique file name?
> > > >
> > > > In Windows there're GetTempFileName and GetTempFileName32.
> > > >
> > > > For Linux, a hint: I heard that Borland had used somebody else's
> > > > algorithm to implement GUIDs. Implementation could be in FreeCLX.
> > >
> > >
> > > Simply use the tmpnam function from libc:
> > >
> > > Function tmpnam (s : pchar) : pchar;cdecl;external 'c';
> > >
> > > s may point to a buffer in which the filename is be copied;
> > >
> >
> > Well, thanks to all for the contribution, but my priority is it to be GO32V2, does it work under this platform?
> 
> It should be as it is part of the C library.
> 
> Michael.
> 

_____________________________________________________________________
Si no encuentras lo que buscas... ¿a qué estás esperando para entrar en www.wanadoo.es? 
Con nuestro nuevo motor de búsqueda conseguirás más rápido resultados de actualidad, personalizados y renovados diariamente.






More information about the fpc-pascal mailing list