問題描述
在 64 位應用程序中使用 32 位 .lib 庫 (Using 32bit .lib library in a 64bit application)
I'm a starting programmer and I can't solve a problem I have now.
In MFC, I have a .lib
binary file without the sources. I need to make a 64bit application that uses mentioned library file.
I thought about making 32bit console program and run one program from another, for example using IPC with WM_COPY~
(or something like that), but the .lib
file needs so many attributes like array, struct, pointer, ...
Is there an easier way to use that 32bit library in my 64bit application?
Thanks
‑‑‑‑‑
參考解法
方法 1:
You don't have any other alternative; you cannot load a 32‑bit assembly in a 64‑bit program, so you'll need to create a 32 bit application that your 64 bit application can talk to somehow. There are lots of ways to do IPC, so find one that works for you.
(by CreativeYS、Andy)