Re: Launching ActiveX applications from .Net

Matthew McDonald <[email protected]> Wed, 31 Jan 2007 11:27:35 -0700
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
COM wrappers are a pain IMHO. When they work they're fine but when anything
goes wrong it's usually not an easy fix (I've got more than a few horror
stories). Unfortunately they are sometimes necessary.

-Matt McDonald

On 1/31/07, Simon Cansick <[email protected]> wrote:
>
> Thanks for your feedback.
>
> Shawn - There is some .Net code that I wish to execute before the
> activex exe is called.  I'm trying to wrapper the legacy apps with a
> swanky new centralised security\authorisation\settings entry point.
>
> Possibly I'm looking at this the wrong way, I simply need to:
> Run some .Net code
> Launch an ActiveX exe (which will be registered on the fly) from this
> code
> Not have anything else running, except the the launched process.
>
> Matt - Your idea of starting the process using
> System.Diagnostics.Process is interesting, I'd need to change to passing
> in command line parameters, instead of methods, but this is possible, so
> I'm going to have a look at that.
>
>
> Thanks,
> Simon
>
> -----Original Message-----
> From: Discussion relating to the specifics of the C# and Managed C++
> languages [mailto:[email protected]] On Behalf Of Shawn
> Wildermuth
> Sent: 31 January 2007 16:37
> To: [email protected]
> Subject: Re: [DOTNET-CX] Launching ActiveX applications from .Net
>
> Can't you just run the ActiveX.EXE?  Why the console project?
>
>
> Thanks,
>
> Shawn Wildermuth
> Wildermuth Consulting Services, LLC
> http://wildermuthconsulting.com
> http://adoguy.com
> Microsoft MVP (C#), MCSD.NET, Author and Speaker
>
>
> -----Original Message-----
> From: Discussion relating to the specifics of the C# and Managed C++
> languages [mailto:[email protected]] On Behalf Of Simon
> Cansick
> Sent: Wednesday, January 31, 2007 8:17 AM
> To: [email protected]
> Subject: [DOTNET-CX] Launching ActiveX applications from .Net
>
> Chaps,
>
> I'm working on a project that requires me to launch legacy ActiveX Exe
> (VB6) applications from .Net (I'm using C#)
>
> I've created a console application that successfully launches my ActiveX
> applications, but these applications are destroyed when that console
> application terminates.
>
> Well kind of destroyed, the GUI terminates, but the process lingers on
> according to Task Manager.
>
> So I've been trying to find a way of creating a thread, launching my
> ActiveX, then destroying the 'parent' thread (I believe this is called
> an orphaned thread), because I don't want the console app to continue.
> But I've not had much luck.
>
> Has anyone got experience in this area?
>
> Simon James
>
> The contents of this email are confidential to the intended recipient
> and may not be disclosed. Although it is believed that this email and
> any attachments are virus free, it is the responsibility of the
> recipient to confirm this.
>
> Smith & Williamson Corporate Finance Limited - A member of the London
> Stock Exchange.
> A member of M&A International Inc. http://www.mergers.net  Registered in
> England No. 4533970. Authorised and regulated by the Financial Services
> Authority Smith & Williamson Investment Management Limited, Registered
> No. 976145. Authorised and regulated by the Financial Services
> Authority.
> Smith & Williamson Pension Consultancy Limited - Independent
> Intermediary. Registered No. 3133226. Authorised and regulated by the
> Financial Services Authority.
> Smith & Williamson Fund Administration Limited, Registered No. 1934644.
> Authorised and regulated by the Financial Services Authority.
> Smith & Williamson Limited - A member of Nexia International.
> Registered in England No. 4534022. Regulated by the Institute of
> Chartered Accountants in England & Wales for a range of investment
> business activities.
> NCL Investments Limited, Registered No. 1913794.
> Member of the London Stock Exchange authorised and regulated by the
> Financial Services Authority.
>
> Registered Office: 25 Moorgate, London EC2R 6AY
> Telephone: 020 7131 4000 http://www.smith.williamson.co.uk
>
> Nexia Smith & Williamson Audit Limited - A member of Nexia
> International. Registered in England No. 4469576.
> Nexia Smith & Williamson Audit Limited is a company registered to carry
> out audit work and is regulated for a range of investment activities by
> the Institute of Chartered Accountants in England and Wales.  Smith &
> Williamson Limited is a separate company that provides professional
> resources and certain services to Nexia Smith & Williamson Audit Limited
> under the terms of a formal agreement on an arm's length basis.
>
> Registered Office: 25 Moorgate, London EC2R 6AY
> Telephone: 020 7131 4000 http://www.nexiasmith.williamson.co.uk
>
> All telephone calls are recorded for business purposes.
>
> ===================================
> This list is hosted by DevelopMentor   http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentor  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com