[fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()
Fred van Stappen
fiens at hotmail.com
Mon Jan 13 12:35:41 CET 2014
> Date: Mon, 13 Jan 2014 12:07:54 +0100
> From: XHajT03 at hajny.biz
> To: fpc-pascal at lists.freepascal.org
> Subject: Re: [fpc-pascal] windows.GetProcAddress() vs DynLibs.GetProcAddress()
>
> On Mon, January 13, 2014 11:47, Fred van Stappen wrote:
> > Hello.
> >
> > I have a external dll. In Windows i can access perfectly the procedures
> > with
> > GetProcAddress() if i use Windows unit.
> >
> > If i use DynLibs unit, prog crash when i try to load the procedure.
> > I prefer to use DynLibs unit because i want to use the dll for Linux too
> > (of course with library.so).
> >
> > I have try, in linux to access the procedure with DynLibs too but same
> > crash than for Windows.
> > What must i do to access procedure with DynLibs ?
>
> Can you provide a simplified program demonstrating the problem? Does it
> "crash" when trying the obtain the address, or when trying to use it (e.g.
> after assignment to a procedural variable)? If it is the latter, have you
> checked that the calling conventions of your DLL and your procedural type
> match? If it is the former, how is the "crash" demonstrated (i.e. what
> happens)?
>
> Tomas
Hello Tomas.
I have sent part of code in earlier topic, do you need more ?
The crash append when i try to call the procedure.
LoadLibrary(libfile) seems to work, i get result as "true".
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140113/cde5cede/attachment.html>
More information about the fpc-pascal
mailing list