none
Without TSTCON32.exe How are we supposed to test ActiveX Controls in VS2013? RRS feed

  • Question

  • The help documentation is really out of date for VS2013. It keeps refering to TSTCON32 for testing ActiveX controls, which I cannot find anywhere. I really need to tool like TSCON32 rather than switching between ActiveX solution and Visual Basic solution to test the control. This control I am developing will not work in a web browser, so forget about using IE for testing. What should I do?

    I am converting VB6 code and activeX controls into VS2013. The conversion process is very painful when I run into issues with Controls no longer working, and no means to convert and test them properly.
    Friday, March 28, 2014 9:40 PM

Answers

  • you can download the 2010 samples from http://archive.msdn.microsoft.com/vcsamples

    if you just need this particular sample, you can download from http://archive.msdn.microsoft.com/vcsamplesmfc.



    Visual C++ MVP

    • Marked as answer by Glen Stark Saturday, March 29, 2014 2:25 PM
    Saturday, March 29, 2014 4:52 AM

All replies

  • You can copy and paste the link in a browser. I saw this webpage already and I cannot find the said directories for the sample code. Shouldn't there be a VS2013Samples.zip? I will try reinstalling VS.

    Now, that link I already visited and I cannot find the sample code in either VS2011 or VS2012 install directory.

    Hello, I’m Pat Brenner, a developer on the Visual C++ Libraries team.  I’ve noticed some posts on various forums lamenting the loss of the ActiveX Test Container application and I wanted to address those concerns.

    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.


    Glen Stark

    Saturday, March 29, 2014 3:30 AM
  • you can download the 2010 samples from http://archive.msdn.microsoft.com/vcsamples

    if you just need this particular sample, you can download from http://archive.msdn.microsoft.com/vcsamplesmfc.



    Visual C++ MVP

    • Marked as answer by Glen Stark Saturday, March 29, 2014 2:25 PM
    Saturday, March 29, 2014 4:52 AM
  • Perfect, thanks for your help.

    Glen Stark

    Saturday, March 29, 2014 2:25 PM
  • the link is not accessible 
    Sunday, March 13, 2016 3:24 PM
  • right - none of those links work. You can find tstcon in the VCSample GITHUB but there seems to be no way to just copy the folder - you have to download the entire set of VS samples just to get that single @#$% folder - which on my DSL link is not fun. WHY ARE YOU GUYS MAKING THIS SO HARD???


    Al Chisholm

    Friday, October 11, 2019 6:43 PM