473,657 Members | 2,461 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make a "Out of Process Component" (ActiveX Exe Serve) in Do

Hello all,

in VB6 we were able to create ActiveX-DLL's (In Process Components) and
ActiveX-Exe's (Out of Process Components).

We habe build up an application that exists of an main module (Standard Exe)
that calls and controls other modules (ActiveX-Exe).

We decided for ActiveX-Exe because they run in different processes. That
means if one module shuts down, the others are still alive. Second reasons
was that modal dialogs are just modal for one module. So the others are not
blocked.

Now we want to migrate to .NET step by step. That means module by module.
Now we have the problem, that we don't know how to implement a Out of
Process component in DotNet.

At the moment all new DotNet modules run in the same process as the calling
application. So of course we also lost these modal dialogs per module.

Just for a better understanding. For example Excel, Word or Powerpoint are
also ActiveX-Exe or Out of Process Components. You can start, display and
control them via their Object Model. How can create such ActiveX Exe's with
DotNet.

Thanks in advance.

Best regards,
U.Henne
Jul 21 '05 #1
2 5341
The office app's use OLE. The framework, as of now, does not have support for many (if not all) of the OLE interfaces. The
WebBrowser control (using the ActiveX host wrapper) allows for a .NET program to embed OLE objects into WinForms. Think of it as a
complex OLE container implementation that works in .NET.

If you have ActiveX components that are reusable, then you can drop a WebBrowser control (COM tab in add references, then Internet
Controls Library. (I think it's called shvwdoc.dll)), and embed your ActiveX control in that. Communication between your app and
the AX component can be done through the HTML Object Library as in IE.

As soon as you need out-of-process communication in .NET, you must use the Remoting framework. I suggest making your ActiveX
components into UserControls and running multiple instances of your Forms in different processes (or AppDomains). You'll have to
remote the objects to communicate cross-domain/process.

--
Dave Sexton
dave@www..jwaon line..com
-----------------------------------------------------------------------
"Berata" <Be****@discuss ions.microsoft. com> wrote in message news:75******** *************** ***********@mic rosoft.com...
Hello all,

in VB6 we were able to create ActiveX-DLL's (In Process Components) and
ActiveX-Exe's (Out of Process Components).

We habe build up an application that exists of an main module (Standard Exe)
that calls and controls other modules (ActiveX-Exe).

We decided for ActiveX-Exe because they run in different processes. That
means if one module shuts down, the others are still alive. Second reasons
was that modal dialogs are just modal for one module. So the others are not
blocked.

Now we want to migrate to .NET step by step. That means module by module.
Now we have the problem, that we don't know how to implement a Out of
Process component in DotNet.

At the moment all new DotNet modules run in the same process as the calling
application. So of course we also lost these modal dialogs per module.

Just for a better understanding. For example Excel, Word or Powerpoint are
also ActiveX-Exe or Out of Process Components. You can start, display and
control them via their Object Model. How can create such ActiveX Exe's with
DotNet.

Thanks in advance.

Best regards,
U.Henne

Jul 21 '05 #2
>>How can create such ActiveX Exe's with DotNet.

You cannot - that's all there is to say.

What we ended up doing is create an ActiveX Shell EXE, that basically
just loads and executes a .NET DLL assembly (containing code in a COM
object).

Marc

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1349
by: Eric Brasher | last post by:
I am trying to work with the new sdk 3.0 from quickbooks which allows subscriptions to events in the quickbooks app. One problem I am having is creating an activex exe using vb.net. The subscription process states that the com object used to recieve events from qb has to run out of process. How do I create an "Out of Process" compatible solution in vb.net?
3
8050
by: Henne | last post by:
Hello, in VB6 we werr able to make ActiveX-DLL's (In Process Components) and ActiveX-Exe (Out Of Process Components). Out Application is build of one main application that starts other modules. These modules are ActiveX-Exe's. The main application controls the modules via ActiveX. We decided to use ActiveX-Exe because we want to run the modules in
11
5266
by: Shane Suebsahakarn | last post by:
Hi all, This might be one of those things for which there is no workaround. I'm using A2K2, and using it to perform a very large batch ouput. Both the front and back ends are MDB files, so no SQL Server involved here. Both SP3 and Jet SP8 have been updated, and the platform is running on a dual-processor 3Ghz Xeon Win2K3 Server box with 2GB RAM. The batch run outputs 6 or 7 reports to approximately 16-17,000 snapshot files None of the...
0
1696
by: Oliver | last post by:
> I am seeing an 'Access Denied' exception when using a "Server" "Serviced Component" >> ..are...registered in the GAC ? yes. >> ..are...the parameters serializable? um - parameters? - the method parameters? - yes think so - there's only one and it's a 'string' here's an example class that illustrates the problem:
4
2085
by: Gary Smith | last post by:
I have written VB6.0 application. Sometime it quites abnormally. Is it possible to monitor this "EXE" so that if it quits, I will be the first person to get notified!!! Is it possible to develop these kind of application using "Process" component in VB.Net ? Gary
3
3679
by: Loane Sharp | last post by:
Hi there I use the FileStream object to download a zip file over the internet to my local disk. The file downloads successfully, but when I attempt to unzip it, I'm told that the file is in use by another process. This occurs even if I release the object using fs.Close() and fs = Nothing. Please help (my code is given below) Best regards
2
302
by: Berata | last post by:
Hello all, in VB6 we were able to create ActiveX-DLL's (In Process Components) and ActiveX-Exe's (Out of Process Components). We habe build up an application that exists of an main module (Standard Exe) that calls and controls other modules (ActiveX-Exe). We decided for ActiveX-Exe because they run in different processes. That means if one module shuts down, the others are still alive. Second reasons
2
4069
by: ironmanlarry | last post by:
Hi, I'm trying to do a mail merge from Excel to Word (programatically) and I'm having some trouble creating the Word Document Object. This line of code wordDoc = GetObject("sheet.doc") keeps returning the error "cannot create ActiveX component" and then the program crashes. Any help is much appreciated. Thank you. Larry
1
1176
by: Evan | last post by:
Hi, I'm creating a web application that runs a java application to handle some processing in libraries that I've only been able to find written in java. In VB.Net I'm creating a Process with ProcessStartInfo and settings RedirectStandardInput and RedirectStandardOutput to true so I can send information to the java process. Since my program is AJAX based, I need a way to preserve the Process.StandardInput and Process.StandardOutput...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1604
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.