Questions tagged [tstcon32]

txtcon32 is a Test Container for ActiveX controls.

The ActiveX Text Container tool is 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.

(reference)


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

Documentation for tstcon32.

8 questions
10
votes
2 answers

How do I redirect calls to ole32.dll to my own proxy DLL?

I'm trying to detect all calls to CoCreateInstance in some process I'm starting (ideally, I'm able to detect calls in child processes as well). To achieve this, using Microsoft Visual Studio 2008 on Windows 7, I create a proxy DLL which forwards all…
Frerich Raabe
  • 90,689
  • 19
  • 115
  • 207
7
votes
3 answers

How to create an ActiveX control in C#?

I am not able to create a functioning ActiveX control in C#; I have tried following tutorials to do so without success. I create a sample Class Library project which includes this code: namespace AACWCSurvey { …
VextoR
  • 5,087
  • 22
  • 74
  • 109
4
votes
1 answer

What is the proper way for an ActiveX (COM) control to clean up when closed by its parent?

I'm having problems with my .net controls not getting cleaned up properly when wrapped for ActiveX use. The default behavior leaves the SDK's test container app (TstCon32.exe) running as a GUIless process when I try and close it. The workaround I…
4
votes
2 answers

How to debug ActiveX Control by using a process of .NET application that uses it?

I wrote an ActiveX Control (OCX) in native C++ using VS2008. I can debug it correctly when I attach to the thread of Microsoft ActiveX control test container (TstCon32.exe) and my own native cpp application which references the control. However, I…
SuperLucky
  • 595
  • 5
  • 15
1
vote
1 answer

Java => ActiveX component = Swing with no interaction

I'm creating a Java bean component and then generate it to ActiveX dll like in this tutorial It is a Swing panel public class AACWCSurvey extends javax.swing.JPanel with couple JButtons but when I test it in tstcon32.exe I can't actually press any…
VextoR
  • 5,087
  • 22
  • 74
  • 109
0
votes
1 answer

Successfully registered COM DLL is not being listed in "Insert ActiveX control" dialog of visual studio

I have created a COM DLL using the ATL project (Composite object) which basically has one tree control (which is a part of VS toolbox) within a dialog. After registering it, I'm trying to insert it in a dialog based MFC/ATL application by using the…
0
votes
1 answer

ActiveX control going blank in one host container but not others

I need to use activeX to create a plugin for a legacy application. I'm using C# so that i can share the codebase of several related stand alone products. When I host the control in the SDK's test container (TstCon32.exe) everything works fine. …
0
votes
2 answers

debug output from an ActiveX control

I'm developing an ActiveX control and I'd like to throw some debug output to the console area in tstcon32 like other controls are doing. What system call is doing that? stdout doesn't seem to be it
hookenz
  • 36,432
  • 45
  • 177
  • 286