把你的代码的目标平台从AnyCPU改为X86,或者写一个32位的代理进程和COM通讯
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP