VC++:ActiveX Test Container

  VC++6.0安装后包含了ActiveX Test Container工具,位置为:

  "C:\Program Files (x86)\Microsoft Visual Studio\Common\Tools\TSTCON32.EXE"

  

  但是在VS2008以及VS2010中就不能明显地找到这个工具了~ 怎么获取呢?

  The ActiveX Text Container tool is still available as a sample in Visual Studio 2008 and Visual Studio 2010.  It is included in the Visual C++ samples ZIP file included with Visual Studio:

  • ·For VS2008, it’s in [Program Files]\Microsoft Visual Studio 9.0\Samples\1033\AllVCLanguageSamples.zip
  • ·For VS2010, it’s in [Program Files]\Microsoft Visual Studio 10.0\Samples\1033\VC2010Samples.zip

  The sample is named TSTCON and is in the C++\MFC\OLE\TstCon folder in the ZIP file.  You can build this sample and run it to test the functionality of your ActiveX controls.

 

  Note that there is a problem with the sample in Visual Studio 2008.  After building the application, running it will give an error message because “the application configuration is incorrect”.  To fix this, change the “Enable User Account Control” property on the Linker / Manifest File property page for the TCProps project to No (as in the screen shot below) and rebuild the solution.  You will need to do this for all configurations and platforms that you want to run.  Once you do so, the tool will run (in both Win32 and x64 configurations) without issue.

   

  For Visual Studio 2010, the sample was converted to the new Visual C++ build system (based on MSBuild) and the problematic setting was removed during the conversion.  So for Visual Studio 2010, the sample builds and runs (in both Win32 and x64 configurations) without issue.

 

  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值