Thanks lucamar. I remember now that the "wow64" folder is the correct place. I saw somewhere that the dll also needs to be in one of the project folders. Is that correct?
Not "also", but "instead" (if you want). In the absence of an explicit path, the DLL is searched for (IIRC) first in the same directory the executable is in, then in the corresponding system folders.
And maybe, if not yet foud, in the directories pointed to in "PATH"? Though I'm not sure of this.
I'm sure Microsoft has this info somewhere in their docs, but bottom-line recommendation is: put extra DLLs with your executable and use system ones from the system folders.
That's it, basically