[fpc-pascal] Ansistrings exported in DLL's - mystery

Michael Van Canneyt michael at freepascal.org
Tue Jan 3 12:21:29 CET 2006



On Mon, 2 Jan 2006, L505 wrote:

> Trustmaster from PSP project tells me he's been using Ansistrings in DLL without
> problems. The entire psp.furtopia.org website is running a DLL with ansistrings in
> it, he says.
>
> He says he compiled it with FPC 1.0 a long time ago..
>
> So the psp.furtopia website has been using ansistrings in DLL for ages now.
>
> How can this be? How is it possible a website can run without any problems, using
> ansistrings?
>
> i.e. exporting functions like this:
>
> function something(param: ansistring): ansistring;
>
>
> Can it be pure luck that a website is running this long with ansistrings?

It all depends on how the DLL is used.
It's impossible to say something definite without this information.

If it's used by a C program such as Apache or so, then it should not
present a problem at all.

Michael.



More information about the fpc-pascal mailing list