473,385 Members | 2,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

vb.net equivalent of ActiveX?

Ron
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 each day at
a specified time -say 4:00 am. Project2 pulls data from
various sources (takes about an hour). When project2 has
completed its tasks it will end itself. Before ending it
needs to pass information back to project1, results of
data pulls, how much data, etc. (Note: there is also a
project3 to be invoked simultaneously - I have spent
several weeks experimenting with multi-threading but
having too many problems).

So I know vaguely something about a class library project
(dll) where project1 could be a class library project with
a form and communicate with project2. Could someone tell
me/show me what/how is the best way for project2 to
communicate with project1? Similar to ActiveX project.

Thanks
Nov 21 '05 #1
3 1419
You don't need something similar to ActiveX at all.

Each project will compile down to its own assembly. Depending on the
project type, you will get either a .dll (Class Library) or an .exe (Windows
Forms App / Console App).

Simply make a reference to the assembly that has the code you need to run
and your project will be able to make instances of the classes in that
assembly.
"Ron" <an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
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 each day at
a specified time -say 4:00 am. Project2 pulls data from
various sources (takes about an hour). When project2 has
completed its tasks it will end itself. Before ending it
needs to pass information back to project1, results of
data pulls, how much data, etc. (Note: there is also a
project3 to be invoked simultaneously - I have spent
several weeks experimenting with multi-threading but
having too many problems).

So I know vaguely something about a class library project
(dll) where project1 could be a class library project with
a form and communicate with project2. Could someone tell
me/show me what/how is the best way for project2 to
communicate with project1? Similar to ActiveX project.

Thanks

Nov 21 '05 #2
Ron
Thanks for your reply. Well, I tried creating another
simple exe project and tried to reference it in project1,
but got a message that only dll or com projects could be
referenced. So I created a simple class library project
with a form. Since I added a form to the class library
project I am getting an error when I try to run the
project. I tried setting the form as the startup object
but got the same error. Could you advise me how to
configure my class library project so I can run the form?
the form calls a simple public function in the class of
the class Library Do I need a sub Main and application.run
(myfrm)?

public class1
public function msg() as string
msg = "testing
End Function
End Class

Thanks,
Ron
-----Original Message-----
You don't need something similar to ActiveX at all.

Each project will compile down to its own assembly. Depending on theproject type, you will get either a .dll (Class Library) or an .exe (WindowsForms App / Console App).

Simply make a reference to the assembly that has the code you need to runand your project will be able to make instances of the classes in thatassembly.
"Ron" <an*******@discussions.microsoft.com> wrote in messagenews:08****************************@phx.gbl...
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 each day at a specified time -say 4:00 am. Project2 pulls data from
various sources (takes about an hour). When project2 has completed its tasks it will end itself. Before ending it needs to pass information back to project1, results of
data pulls, how much data, etc. (Note: there is also a
project3 to be invoked simultaneously - I have spent
several weeks experimenting with multi-threading but
having too many problems).

So I know vaguely something about a class library project (dll) where project1 could be a class library project with a form and communicate with project2. Could someone tell me/show me what/how is the best way for project2 to
communicate with project1? Similar to ActiveX project.

Thanks

.

Nov 21 '05 #3
That's correct, you can only reference a .dll, not an .exe. The application
that calls to another one should be the .exe. The classes that need to be
called should be in a .dll (class library project).
"Ron" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
Thanks for your reply. Well, I tried creating another
simple exe project and tried to reference it in project1,
but got a message that only dll or com projects could be
referenced. So I created a simple class library project
with a form. Since I added a form to the class library
project I am getting an error when I try to run the
project. I tried setting the form as the startup object
but got the same error. Could you advise me how to
configure my class library project so I can run the form?
the form calls a simple public function in the class of
the class Library Do I need a sub Main and application.run
(myfrm)?

public class1
public function msg() as string
msg = "testing
End Function
End Class

Thanks,
Ron
-----Original Message-----
You don't need something similar to ActiveX at all.

Each project will compile down to its own assembly.

Depending on the
project type, you will get either a .dll (Class Library)

or an .exe (Windows
Forms App / Console App).

Simply make a reference to the assembly that has the code

you need to run
and your project will be able to make instances of the

classes in that
assembly.
"Ron" <an*******@discussions.microsoft.com> wrote in

message
news:08****************************@phx.gbl...
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 each day at a specified time -say 4:00 am. Project2 pulls data from
various sources (takes about an hour). When project2 has completed its tasks it will end itself. Before ending it needs to pass information back to project1, results of
data pulls, how much data, etc. (Note: there is also a
project3 to be invoked simultaneously - I have spent
several weeks experimenting with multi-threading but
having too many problems).

So I know vaguely something about a class library project (dll) where project1 could be a class library project with a form and communicate with project2. Could someone tell me/show me what/how is the best way for project2 to
communicate with project1? Similar to ActiveX project.

Thanks

.

Nov 21 '05 #4

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

Similar topics

14
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...
3
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.
2
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...
11
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...
3
by: John | last post by:
anyone?
0
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...
8
by: Nikkita | last post by:
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...
11
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...
0
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
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,...
0
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...

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.