473,396 Members | 2,108 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,396 software developers and data experts.

Advice please on best method

I am looking for advice on the best method of producing a piece of
software written in Visual Basic or Visual Basic.NET that will control
another standard windows program such as ‘Notepad' using ole
automation.

The system will be produced as a stand-alone EXE which will run on a
single PC once the installation has been completed, but I also want to
be able to easily convert the system to run from a web-site with the
minimum of re-work.

My current thinking is that I would need to put the code which is not
connected with the user-interface into an Active-X control which can
be used on a web-site. Only, I am not sure if I should use an OCX,
Active-X EXE or Active-X DLL control. Also, I am not sure what
services the web-server must have installed in order to be able to run
the component.

Any advice would be gratefully appreciated.

Allan Cammish
Nov 20 '05 #1
13 2177
Nak
> My current thinking is that I would need to put the code which is not
connected with the user-interface into an Active-X control which can
be used on a web-site. Only, I am not sure if I should use an OCX,
Active-X EXE or Active-X DLL control. Also, I am not sure what
services the web-server must have installed in order to be able to run
the component.


With VB.NET you would need the .NET Framework installed plus the Windows IIS
server (which can only be run easily on Windows 2k and Windows XP
Professional). It can be installed on XP Home edition but requires bodging,
yet another "feature" that Microsoft thought it would be wise to remove from
their "cheaper" software, because people who buy "cheap" software DONT
deserve functionality and should be frowned upon.

But anyway, Active-X is dead in .NET, you use .NET components, but it's the
same principal. VB.NET makes web services etc. and web forms for such a
purpose, the whole task is simplified using ASP.NET, though I have no
experience of web services so far. But .NET 'should' make all of this
easier for you :-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #2
Cor
Allan,
In addition to Naks advice, I will suggest you to look here
http://msdn.microsoft.com/library/de...alkthrough.asp
Cor
Nov 20 '05 #3
Notepad doesn't expose any OLE interfaces, and in VB.NET, you cannot use OLE
(easily). Also, VB.NET does not produce stand-alone executables, and it
cannot create Active-X's (I know it can, but it requires COM interop, which
really isn't the way you want to be going)

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit
"Allan Cammish" <al**********@hotmail.com> wrote in message
news:f9**************************@posting.google.c om...
I am looking for advice on the best method of producing a piece of
software written in Visual Basic or Visual Basic.NET that will control
another standard windows program such as 'Notepad' using ole
automation.

The system will be produced as a stand-alone EXE which will run on a
single PC once the installation has been completed, but I also want to
be able to easily convert the system to run from a web-site with the
minimum of re-work.

My current thinking is that I would need to put the code which is not
connected with the user-interface into an Active-X control which can
be used on a web-site. Only, I am not sure if I should use an OCX,
Active-X EXE or Active-X DLL control. Also, I am not sure what
services the web-server must have installed in order to be able to run
the component.

Any advice would be gratefully appreciated.

Allan Cammish

Nov 20 '05 #4
Nak
>Also, VB.NET does not produce stand-alone executables

?? If you mean that you requre the framework then VB6 requires VB6 runtimes,
the Framework is just VB.NET runtimes. So you can create stand-alone
executables.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"Tom Spink" <th**********@ntlworld.com> wrote in message
news:OD**************@TK2MSFTNGP11.phx.gbl...
Nov 20 '05 #5
Nak
> Thanks for your advice. If I were to abandon the idea of using .NET
initially and use an Active-X DLL, do you know if it would be easy to
upgrade to .NET later, and convert the Active-X DLL to the .NET
components or .NET web services?


As far as I am aware it won't be that easy to chage as web services
architechture is different from that of an ActiveX DLL. You would be much
better off doing a web service in .NET and from my experience of it so far
there would be allot less maintenance involved. But fair enough if you want
to go the VB6 route, .NET "should" be far easier (Obviously depending on
exactly what you want it to do).

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #6
Hello,

"Cor" <no*@non.com> schrieb;
I did read Nicks advise three times, my English is not so good, maybe that
is the reason that I did not understand that advise, I did understand he
said the oposite from what you are saying.
Maybe Nick will tell me where he did do that statement, I am seriously
curious what I did read wrong in Nick's message?


???

What's unclear?

Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #7
Cor
Herfried,
In my opinion this was not the advise from Nick, it was the opposite
\\\\\\\\\\
Thanks for your advice. If I were to abandon the idea of using .NET
initially and use an Active-X DLL, do you know if it would be easy to
upgrade to .NET later, and convert the Active-X DLL to the .NET
components or .NET web services?
//////////
1. I read the text from Nick
2. Nick knows to much from .Net to say this.
3. Or I misunderstood everything
Cor
Nov 20 '05 #8
Nak
> > I did read Nicks advise three times, my English is not so good, maybe
that
is the reason that I did not understand that advise, I did understand he
said the oposite from what you are saying.
Maybe Nick will tell me where he did do that statement, I am seriously
curious what I did read wrong in Nick's message?

Cor, could you please stop contradicting me!
What's unclear?
My thoughts exactly!

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Nov 20 '05 #9
Cor
And this is what Nick wrote
\\\\\\
With VB.NET you would need the .NET Framework installed plus the Windows IIS
server (which can only be run easily on Windows 2k and Windows XP
Professional). It can be installed on XP Home edition but requires bodging,
yet another "feature" that Microsoft thought it would be wise to remove from
their "cheaper" software, because people who buy "cheap" software DONT
deserve functionality and should be frowned upon.

But anyway, Active-X is dead in .NET, you use .NET components, but it's the
same principal. VB.NET makes web services etc. and web forms for such a
purpose, the whole task is simplified using ASP.NET, though I have no
experience of web services so far. But .NET 'should' make all of this
easier for you :-)
/////

Nov 20 '05 #10
Cor
Nak,
In my opinion your message was clear and I could nowhere read there that you
said
try a while Active X, then maybe you can go to .Net later.

But you know, maybe did I misunderstand this, that was all.

Cor
Nov 20 '05 #11
Cor
I did not found any fault in that on the contrairy, I did give as addition
to that an Url about webservices.
Nov 20 '05 #12
Nak
I wasnt suggestion using VB6 first simply because I don't see any benefit
from it, why develop some old technology just to want to update it at a
later date? especially if it wont be any easier to develop than .NET, that's
all.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #13
Cor
Nick,
That is what I did say, did you remember when you and Armin had a long
discussion about "Option Strict" and I said Watch what you are saying
Armin.

I did read "Thanks for your advice Nick. If I were to abandon the idea of
using .NET
initially and use an Active-X DLL....................". to tell that I did
not read that that was your advise.
Cor
Nov 20 '05 #14

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

Similar topics

9
by: Rick Muller | last post by:
I have a problem that I would like to get some advice on from other Pythonistas. I currently manage a (soon to be) open source project for displaying molecular graphics for a variety of different...
12
by: Josema | last post by:
Hi, Im starting develop a portal, and i never used interfaces in the past. As any portal will be possible register (add), delete, modify a user. In this portal also will be possible...
2
by: Grant Merwitz | last post by:
Hi I am currently weighing up two options. I have a data i need available for my website. However, this data is only available via a web service and too slow to retrieve on a user request...
5
by: Mike | last post by:
Hi, I'm new to vb.net and would be grateful if anyone could offer some advice on the best way to approach this problem: I wish to dynamically capture pricing information e.g. 10 stock prices...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
13
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those...
4
by: | last post by:
I am a recent college graduate and am looking for some advice on how to be a skilled C++ developer. My educational background is from a quite mediocre campus. Can anybody please explain what is...
7
by: Joseph Geretz | last post by:
I have a Service which runs OK, but I'm abviously not starting it properly. In my OnStart event I commence a long running process which polls a database table and performs various processing. Since...
7
by: Gladen Blackshield | last post by:
Hello All! Still very new to PHP and I was wondering about the easiest and simplest way to go about doing something for a project I am working on. I would simply like advice on what I'm asking...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.