Software such as Excel or Word exposes a COM object model which allows
them to be automated by any language that can call COM objects.
As I understand it, I can do the same in VB6 by writing an Activex EXE.
Such a program can have a GUI which will be accessed by users in the
normal way as well as exposing a COM object model.
How can I do the .Net equivalent in VB.Net? According to VB.Net help, the
VB.Net equivalent of an Activex EXE is a Class Library. But a Class
Library project doesn't appear to allow me to choose a starting point -
it's only intended to export objects to be called from elsewhere. This is
all very well but how do I write a program in VB.Net with a GUI which can
also export its object model to allow it to be automated/consumed by other
programs? 8 8103
On 2005-04-26, Nikkita <ni*****@cix.co.uk> wrote: Software such as Excel or Word exposes a COM object model which allows them to be automated by any language that can call COM objects.
As I understand it, I can do the same in VB6 by writing an Activex EXE. Such a program can have a GUI which will be accessed by users in the normal way as well as exposing a COM object model.
How can I do the .Net equivalent in VB.Net? According to VB.Net help, the VB.Net equivalent of an Activex EXE is a Class Library. But a Class Library project doesn't appear to allow me to choose a starting point - it's only intended to export objects to be called from elsewhere. This is all very well but how do I write a program in VB.Net with a GUI which can also export its object model to allow it to be automated/consumed by other programs?
The closest equivalent would be .NET remoting... Your application can
host objects that other processes can get hold of and send commands.
--
Tom Shelton [MVP]
Nikkita wrote: How can I do the .Net equivalent in VB.Net?
If it helps, you can reference .exes in VS2005...
--
(O)enone
You would have to create a Class Library that exposes your object
model. It can also contain GUI elements like forms and dialog boxes.
You would then have to create a Windows Forms Application to allow the
app to run stand alone.
As was pointed out by Oenone, VS2005 will allow the referencing of
..exe's
Just FYI, the VS.NET 2003 IDE does not allow you to reference *.exe files.
However, if you compile your project through the command line, it will allow
you to reference *.exe files. Try it out, it works :)
"Chris Dunaway" wrote: You would have to create a Class Library that exposes your object model. It can also contain GUI elements like forms and dialog boxes. You would then have to create a Windows Forms Application to allow the app to run stand alone.
As was pointed out by Oenone, VS2005 will allow the referencing of ..exe's
In article <#R**************@tk2msftngp13.phx.gbl>, ts******@YOUKNOWTHEDRILLcomcast.net (Tom Shelton) wrote: Software such as Excel or Word exposes a COM object model which allows them to be automated by any language that can call COM objects.
As I understand it, I can do the same in VB6 by writing an Activex EXE. Such a program can have a GUI which will be accessed by users in the normal way as well as exposing a COM object model.
How can I do the .Net equivalent in VB.Net? According to VB.Net help, the VB.Net equivalent of an Activex EXE is a Class Library. But a Class Library project doesn't appear to allow me to choose a starting point - it's only intended to export objects to be called from elsewhere. This is all very well but how do I write a program in VB.Net with a GUI which can also export its object model to allow it to be automated/consumed by other programs?
The closest equivalent would be .NET remoting... Your application can host objects that other processes can get hold of and send commands.
Thanks, I'll look into that.
In article <ec**************@TK2MSFTNGP09.phx.gbl>, oe****@nowhere.com
(Oenone) wrote: Nikkita wrote: How can I do the .Net equivalent in VB.Net?
If it helps, you can reference .exes in VS2005...
Thanks, this could be useful.
In article <11**********************@o13g2000cwo.googlegroups .com>, du******@gmail.com (Chris Dunaway) wrote: You would have to create a Class Library that exposes your object model. It can also contain GUI elements like forms and dialog boxes. You would then have to create a Windows Forms Application to allow the app to run stand alone.
As was pointed out by Oenone, VS2005 will allow the referencing of .exe's
I see, thanks for your help. Things are becoming clearer now.
In article <57**********************************@microsoft.co m>, rm*****@newsgroup.nospam (=?Utf-8?B?cm1hY2lhcw==?=) wrote: Just FYI, the VS.NET 2003 IDE does not allow you to reference *.exe files. However, if you compile your project through the command line, it will allow you to reference *.exe files. Try it out, it works :)
That's very interesting, thanks. I'll take a look at that. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John |
last post by:
Is there an equivalent of COM on Linux that I can get through Python.
My need is to have some sort of language independent component
framework. I can think of CORBA but I have to have a server...
|
by: |
last post by:
Hello All,
I am doing some research on ActiveX and it's place in .NET. In .NET, does
ActiveX have an equivalent counterpart.
Where would I be able to locate information on this subject.
Thanks.
|
by: Nad |
last post by:
Hello,
dll hell has been eliminated in .NET using assembly versioning.
I am new in .NET and would like to know if there is any dll-hell-equivalent
in .NET Windows or Web development...
|
by: Eric Dan |
last post by:
Hi,
This may sound a trivial question but I didn't find (yet) the equivalent of
..NET to ActiveX controls (good old COM way :-) ) or Java applets which I am
not familiar with but I understand...
|
by: John |
last post by:
anyone?
|
by: Ron |
last post by:
Hello,
I need project2 to communicate with project1. I usd to do
this in VB6 where Project1 was an ActiveX app and Project2
was a regular exe.
Project1 runs 24/7. Project1 invokes project2...
|
by: Rob Blackmore |
last post by:
Hi,
A simple question I'm sure, but can someone point me in the right direction
of how to have the equivalent of 2 projects in VB.Net, 1 that is a standard
EXE and 1 that is an ActiveX.EXE that...
|
by: Tim |
last post by:
hi,
I would like to create an application that runs in a web browser. It
must have access to the client machine. I guess a bit like the
microsoft update tool at windowsupdate.com
Having never...
|
by: Steve Alpert |
last post by:
I'm using the ActiveX interop to include an activeX control on a C# form.
In InitializeComponent(), there is a call like:
this.myControl = new AxMywinLib.AxMyWin();
I would like to support...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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...
| |