Re: Can't load FreeImage.dll with Windows

2023-03-03 Thread Adam D Ruppe via Digitalmars-d-learn
On Friday, 3 March 2023 at 19:07:14 UTC, WhatMeWorry wrote: loadFreeImage(`c:\Users\Admin\Downloads\FreeImage3180Win32Win64\FreeImage\Dist\x64\FreeImage.dll`); is your application build 64 bit too?

Re: Can't load FreeImage.dll with Windows

2023-03-03 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
I went ahead and tried to reproduce your setup (this worked). Used FreeImage3180Win32Win64.zip and recent dmd & ldc. ```json { "authors": [ "alpha" ], "copyright": "Copyright © 2023, alpha", "description": "A minimal D application.",

Re: Can't load FreeImage.dll with Windows

2023-03-03 Thread WhatMeWorry via Digitalmars-d-learn
On Friday, 3 March 2023 at 19:44:17 UTC, ryuukk_ wrote: What happens if you put the dll next to your executable, does it find it? Good idea. I copied the dll into same directory as the executable and changed loadFreeImage to immutable FISupport fiLib = loadFreeImage(); And I get the same

Re: Can't load FreeImage.dll with Windows

2023-03-03 Thread ryuukk_ via Digitalmars-d-learn
What happens if you put the dll next to your executable, does it find it?

Can't load FreeImage.dll with Windows

2023-03-03 Thread WhatMeWorry via Digitalmars-d-learn
I've tried distilling the problem to its very essence. I downloaded the FreeImage.dll from https://freeimage.sourceforge.io/download.html to the following directory: where /R c:\ FreeImage.dll c:\Users\Admin\Downloads\FreeImage3180Win32Win64\FreeImage\Dist\x64\FreeImage.dll dir