hunspell.dll is statically linked in Libre/Open-Office.OK, that explains why I cannot find it.
Thanks guys, unfortunately, neither suggestion worked, they do not load.Are you sure.
OK, so I wrote long answer saying Yes I'm sure and was about to post the code I am using. Then I realised it was in fact loading, since I started using the Hunspellx64.dll1)there are a number of open source projects that bind with (n)hunspell dlls for delphi already try using one of them as base.
Its just that the function then goes on to do things like
Hunspell_create := THunspell_create(GetProcAddress(HunLibHandle, 'Hunspell_create'));
And they are all failing, and the function returns false.
Thanks folks, tomorrow I'll try and workout why GetProcAddress() fails. Sort of sounds like those functions are not actually in the DLL. I think I'm going to learn a lot more about Windows DLL than I want to...
At least now I can LoadLibrary ....
Thanks folks, tomorrow I'll try and workout why GetProcAddress() fails. Sort of sounds like those functions are not actually in the DLL. I think I'm going to learn a lot more about Windows DLL than I want to...I see that the Hunspellx64.dll has different exported functions (see left on image).
PS - DependancyWalker - the one I found is 12 years old and gave me all sorts of errors. Is that what people expect ? http://www.dependencywalker.com/ (http://www.dependencywalker.com/)that's the one I'm using with out any problems. There are 3 versions keep away of the ia64 there is no hardware to support it any longer. for optimal operation you need to much the bitness of the loaded executable to the bitness of the walker ee use the x86 to inspect 32bit applications and the x64 for 64bit. I never tested it under wine on linux though.
Looks that it does not work on Win10 where even the analysis of notepad.exe results in an eternal hourglass.here are a couple alternatives https://alternativeto.net/software/dependency-walker/ (https://alternativeto.net/software/dependency-walker/) it lists the one rvk used on his screen shots too.
keep away of the ia64 there is no hardware to support itWhat ? I can remember the HP rep assuring me the future of (my sort of) computing was definitely Itanium. Made me shut down my Alpha Cluster....
I also notice you don't set a path to the library, is that because its properly installed on your system ?On windows the loader will search for the dll specified, on the application's directory, the system folders (system/system32/syswow64) and in the system wide path. In that order you only need to place the dll in one of those locations and it will be loaded.
But I am worried that Windows does not like me calling a function in a DLL thats not "registered" - is that the word ?only for activeX dlls/controls for simple dlls it should work.
I'm reluctant to go ahead and run the hunspell installer as I'm not sure I can reverse the install and its my only windows test platform. Might have to bite the bullet....use a virtual machine with windows installed you can froze it to a specific point in time and undo everything when the vm shuts down or backup the files to an external drive and replace them when you need to undo the changes.
I'm reluctant to go ahead and run the hunspell installer as I'm not sure I can reverse the install and its my only windows test platform. Might have to bite the bullet....What is the hunspell installer?
I assume your build of MSYS2 did also not get you a working gcc ? Do you have gcc or some other c++ compiler already on the windows box ? That could be an explanation for my problem ?No, I don't have gcc installed on Windows. As I understand it msys2 is a complete separate virtual Linux/Cygwin environment so nothing is taken from Windows.
libhunspell.dll was compiled with MSYS2 from the original source from
https://github.com/hunspell/hunspell
You must distribute this file with your program.
libhunspell.dll was compiled from the original source from
https://github.com/hunspell/hunspell
with Microsoft Visual Studio Community 2015.
You must distribute this file with your program.
Does that all sound OK ?Hi David,
- Hunspell does not rely on Lazarus