PC Review


Reply
Thread Tools Rate Thread

Advice please on best method

 
 
Allan Cammish
Guest
Posts: n/a
 
      30th Aug 2003
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
 
Reply With Quote
 
 
 
 
Nak
Guest
Posts: n/a
 
      30th Aug 2003
> 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!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      30th Aug 2003
Allan,
In addition to Naks advice, I will suggest you to look here
http://msdn.microsoft.com/library/de...alkthrough.asp
Cor


 
Reply With Quote
 
Tom Spink
Guest
Posts: n/a
 
      30th Aug 2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
Nak
Guest
Posts: n/a
 
      30th Aug 2003
>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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...


 
Reply With Quote
 
Nak
Guest
Posts: n/a
 
      31st Aug 2003
> 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!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      31st Aug 2003
Hello,

"Cor" <(E-Mail Removed)> 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


 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      31st Aug 2003
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


 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      31st Aug 2003
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 :-)
/////



 
Reply With Quote
 
Nak
Guest
Posts: n/a
 
      31st Aug 2003
> > 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!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sortin method advice please Zipadeedoodaa Microsoft Excel Worksheet Functions 2 17th Jan 2006 08:53 PM
Data Transfer Method Advice Mark Microsoft Dot NET Compact Framework 2 23rd Mar 2005 03:14 PM
Method advice =?Utf-8?B?amV6MTIzNDU2?= Microsoft C# .NET 2 31st Jan 2005 03:55 PM
Advice sought on spam/virus's please! I have no knowledge on this subject and need advice please. CryOnwards Anti-Virus 2 15th Apr 2004 11:59 PM
Finalize method - advice please Bob H Microsoft ASP .NET 1 13th Mar 2004 02:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:36 AM.