>Now, for the windows version, I don't know what underlying mechanism >dynlibs uses under windows, so I'm afraid I can't really comment on that >>platform, except that you could try a similar approach as on linux (use symbol >names instead of indices). OTOH it could (?) be that the the compiler inserts >code to typecast PChar(1) to a string, which could result in an access >violation > (try `var a: string; a:= pchar(1);` to try it out ;-) ).>Ewald
Many thanks Ewald. I decided to use windows unit for Windows (it works so...). Sadly, for Linux, i do not find a solution... Many thanks.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal