tstcon32

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

♀尐吖头ヾ 提交于 2019-12-11 03:38:33
问题 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 initially found via google was to override WndProc and call Environment.Exit(0) manually. This did get TstCon32.exe to shut down completely; however it's breaking the application where i need to have the control hosted. The App is MDI and WM_DESTROY

How to create an ActiveX control in C#?

不羁岁月 提交于 2019-11-29 10:59:29
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 { [ProgId("Prisoner.PrisonerControl")] [ClassInterface(ClassInterfaceType.AutoDual)] public class Class1 { public Class1() { MessageBox.Show("FIRETRUCK!!!"); } } } I then did the following steps: Properties => Application => Assembly Information => Make Assembly COM-visible Build => Register for COM interop TRUE (checked) Make Strong name for assembly (signing) Build the project regasm

How to create an ActiveX control in C#?

断了今生、忘了曾经 提交于 2019-11-28 04:08:45
问题 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 { [ProgId("Prisoner.PrisonerControl")] [ClassInterface(ClassInterfaceType.AutoDual)] public class Class1 { public Class1() { MessageBox.Show("FIRETRUCK!!!"); } } } I then did the following steps: Properties => Application => Assembly Information => Make Assembly COM-visible Build =>