'How to call a x64 C++ dll from VB6 (x86)?

I'm trying to call a x64 C++ function (in .dll) from VB6 application. Warning message displayed be below:

"Run-time error '48'/File not found ***.dll"

Is there any way to do this calling?

Note: x86 C++ .dll is working normal And my x64 C++ .dll is too big and cannot change to x86 complier.



Solution 1:[1]

Maybe you could try with DllSurrogate. Take a look at Calling 64 bit code from a 32 bit VB6 application.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Smith