> Date: Mon, 13 Jan 2014 12:07:54 +0100 > From: xhaj...@hajny.biz > To: fpc-pascal@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
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal