[fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()
Fred van Stappen
fiens at hotmail.com
Tue Jan 14 13:20:47 CET 2014
>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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140114/d7973734/attachment.html>
More information about the fpc-pascal
mailing list