予有需要动态加载的64位的dll它检测到操作系统是64位时,32位的exe。通过调用LoadLibrary这可能吗?如果没有,有没有别的办法来完成同样的目标?
I have a 32-bit exe that needs to dynamically load a 64-bit dll when it detects that the operating system is 64-bit. Is this possible through LoadLibrary? If not, is there another way to accomplish the same goal?
由于pviously提到的$ P $,32位code无法加载64位code在同一个进程。你必须将其加载到一个不同的进程(的CreateProcess()?),并利用IPC进行协调。
As previously mentioned, 32-bit code cannot load 64-bit code in the same process. You'll have to load it into a different process (CreateProcess() ?) and use IPC to coordinate.