如何在我的发行版EXE中使用BCGControlBar调试DLL

时间:2014-01-28 16:33:48

标签: c++ dll mfc

我想用着名的BCGControlBar库构建一个MFC项目。我可以从其网站下载评估版BCG,免费下载软件包仅包含调试DLL。我想使用这个调试版BCGControlBar来构建我的发行版EXE。我更改了BCGBProInc.h中的警报,以停止“BCGControlBar PRO释放模式在评估版本中不可用”消息。但是当exe运行时发生错误:“BCGTest2.exe已停止工作。”这是问题的细节:

Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: BCGTest2.exe
  Application Version:  1.0.0.1
  Application Timestamp:    52e7d79e
  Fault Module Name:    mfc100u.dll
  Fault Module Version: 10.0.40219.325
  Fault Module Timestamp:   4df2e0e6
  Exception Code:   c0000005
  Exception Offset: 002577bf
  OS Version:   6.1.7601.2.1.0.256.1
  Locale ID:    2052
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

是否可以在我的发行版EXE中使用BCGControlBar调试DLL? THX。

1 个答案:

答案 0 :(得分:1)

在发布模式下,无法使用在调试模式下编译的目标文件和目标文件混合使用MFC。

二进制图像不匹配。 vtable不匹配...在发布模式下或在调试模式下同时使用两者。