Inject 64 bit dll from 32 bit app in native c++ app?

Dec 5, 2013 at 2:22 PM
Edited Dec 5, 2013 at 2:26 PM
Is it possible to inject 64 bit dll into 64 bit host app from 32 bit app in native c?

I compiled the dll I want to inject in both 32 and 64 form, but when I call
I get WOW error.
Feb 7, 2014 at 12:27 AM
The host application must be 64-bit in this case, you could probably implement a 64-bit application to run in the middle but it would be easier just to do a 64-bit build of your native app.

Obviously a .NET app doesn't have this problem if built for AnyCPU, although since VS2012 the default behaviour of AnyCPU is now to "prefer 32-bit" - there is a setting somewhere for that in the project properties.
Feb 7, 2014 at 9:11 AM
Thanks. I couldn't build it in 64-bit, because of some libraries, so I implemented a 64-bit helper app.
Marked as answer by spazzarama on 2/10/2014 at 12:21 AM