Does HTA works with browsers other than IE?

  • Thread starter Thread starter David F
  • Start date Start date
D

David F

And with what Windows and IEs versions is it covered?
I just started to read about it. The appealing side of course is that
(presumeably?) it makes UI design easier while still being able to have a
true (pure) C++ underneath carrying the real work load and potentially OS
independent or is it?
Does, bypass the whole .NET / C# stuff and become MS free.

It just sounds too good to be true that MS will help developers to become
free from being dependent on their API which is really their REAL main asset
because it helps them to hold the developers by their b....

Any key suggestions to forget about / consider / adopt it for client side
application development?

Thanks,
David
 
How about creating one and then testing it in different browsers/platforms?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
I have this refinement to my original post:

If IE is a must, but since if I am not mistaken, MS provides/supports the
embbeding of IE functionality in ( pure ?) C++ (I don't remember for sure
but I think I read something about it, but then again, I am not sure if
this is possible/practical w/o .NET/C# or other MS very proprietary
stuff) -- would that be a practical solution for users who run browsers
other than IE (or IE older than ver. 5)?
Just some thoughts.

David
 
An .hta file ( html application ) can have "system" privileges if the author "establishes" the
privileges when creating the file.
No it will *not* circumvent security, and no it has nothing to do with C++ or any other programming
language.
You can run javascript and VB script in an hta file, and you can use it to launch applications on
the system.
It is *not* however a "programming" tool. It can only run / launch applications within the security
guidelines established by the "system" for the application you are running.

iow, if you use an hta to launch Notepad, then Notepad runs under the "system" settings.

Also, if a link to an .hta file is clicked in a browser, the user is automatically prompted as to
whether they want to allow the .hta to open. This can not be circumvented.



--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
As for a response to your subject line.
No, an hta always opens in the Internet Explorer "domain."



--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Not support in IE versions below 5.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
I think you missed my key points:
None of the circumventions you mentioned was even on my mind (let alone my
posting).
I just mentioned that I want to use alternative methods of user interface,
and particularly a browser style one for the following reasons:
1. It became kind of a more common/wide spread style, where most potential
users are familiar with (more than any other style).
2. Not less important, the ability to avoid MFC, .NET, C# and other such
heavily proprietary and unnecessary (to the developers community)
complicated API mechanisms.
3. Achieving a very high degree of natual portability (of unmodified or
very little modified source files).

I am not sure what you meant by "it has nothing to do with C++ ". I don't
think I hinted anywhere it does. I just want to use C++ (not C#, not
"managed" C++ (which is just a nice word for a MS proprietary "C++"), etc.)
as the main part of the application. And for that matter, it could be any
other standard compileable HLL (C++ just happen to be my personal HLL
preference) - I don't care for scripts (except the minimum necessary within
the HTML pages to interface with that HLL) and /or MS proprietary APIs and
languages.

In the meanwhile I have learned that IE (5.0+) is required so I added my
"refinement", suggesting that for users who don't use IE (I am not sure how
many of them left), to embbed / "merge" IE components into the C++
application (which I think is possible but maybe with caveats I mentioned),
thus having .EXE only but with the 3 advantages I listed above here.

I hope I made it clear.

David



Steve Easton said:
An .hta file ( html application ) can have "system" privileges if the author "establishes" the
privileges when creating the file.
No it will *not* circumvent security, and no it has nothing to do with C++ or any other programming
language.
You can run javascript and VB script in an hta file, and you can use it to launch applications on
the system.
It is *not* however a "programming" tool. It can only run / launch
applications within the security
 
Hi David.

If I understand you correctly what you want to do is use an .hta to create a "front end GUI" to run
what is basically a "console application" in the background.

In-Line below


David F said:
I think you missed my key points:
None of the circumventions you mentioned was even on my mind (let alone my
posting).
I just mentioned that I want to use alternative methods of user interface,
and particularly a browser style one for the following reasons:
1. It became kind of a more common/wide spread style, where most potential
users are familiar with (more than any other style).
2. Not less important, the ability to avoid MFC, .NET, C# and other such
heavily proprietary and unnecessary (to the developers community)
complicated API mechanisms.
3. Achieving a very high degree of natual portability (of unmodified or
very little modified source files).

Although the file that launches an .hta is mshta.exe ( Microsoft HTML Application host ) an .hta
runs in the Internet Explorer domain with all of the security guards and restictions of Internet
Explorer.
I am not sure what you meant by "it has nothing to do with C++ ". I don't
think I hinted anywhere it does. I just want to use C++ (not C#, not
"managed" C++ (which is just a nice word for a MS proprietary "C++"), etc.)
as the main part of the application. And for that matter, it could be any
other standard compileable HLL (C++ just happen to be my personal HLL
preference) - I don't care for scripts (except the minimum necessary within
the HTML pages to interface with that HLL) and /or MS proprietary APIs and
languages.

Managed code is code that runs under .NET You can easily compile "unmanaged" code. However, the
more familair you become with .NET and managed code the more you will realize that what "managed"
actually means is "better security."

Proprietary API's . Interesting term. I wouldn't call them proprietary. Windows API's are windows
API's. They run in / interface with windows. They are freely available for any developer to use.

In the meanwhile I have learned that IE (5.0+) is required so I added my
"refinement", suggesting that for users who don't use IE (I am not sure how
many of them left), to embbed / "merge" IE components into the C++
application (which I think is possible but maybe with caveats I mentioned),
thus having .EXE only but with the 3 advantages I listed above here.
Here's where your going to run into "issues." For an hta to be fully functional it is going to
require a fully installed version of Internet Explorer.

I hope that helps.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Hi Steve,

Respond in-line below.

David

Steve Easton said:
Hi David.

If I understand you correctly what you want to do is use an .hta to create a "front end GUI" to run
what is basically a "console application" in the background.

The .hta / "front end GUI" is correct. As far as "console application" - I
am not sure. It is true that portions of the application would run from time
to time autonomously in the background but would also be accessed by the
user like any other full fledged Windows applicatioon.
In-Line below




Although the file that launches an .hta is mshta.exe ( Microsoft HTML Application host ) an .hta
runs in the Internet Explorer domain with all of the security guards and restictions of Internet
Explorer.

But as mentioned, I think I read somewhere that I can incorporate IE
components (at least sufficiently enough to run .hta) [when using VS 2005 ?]
into C++ so the user would not need IE by itself. In a second thought, that
is not a big deal in the Windows market since IE is about 90% of the
Windows' browsers' market share. Interestingly though, FireFox started to
gain some momentum and for the first time in years, it pulled down IE in
Europe slightly below 90% (already last December).
Managed code is code that runs under .NET You can easily compile
"unmanaged" code. However, the
more familair you become with .NET and managed code the more you will realize that what "managed"
actually means is "better security."

As I mentioned before, I don't have much concerns of security. The
application connects once in a couple of days to the internet (in the
background, w/o user's intervention) but: 1. That automatic, fairly short,
interaction with the internet does not involved in the transfer of any
sensitive information whatsoever. 2. In terms of hackers trying to use these
internet sessions just to cause havoc in the clients computer - if my
application has full control of the internet communications (especially if I
incorporate the "internet connection" objects into the application), I
believe I could easily take care of the hackers.
Proprietary API's . Interesting term. I wouldn't call them proprietary. Windows API's are windows
API's. They run in / interface with windows. They are freely available for any developer to use.

I think you are right that i need to clarify "Proprietary API". What I mean
is that the API could be a very simple - the fact that there could be (and
actually are) 1000s of function calls to the OS does not mean they have to
be made complicated and being a changing target all the time. For example,
why are good Forms interface design available only under .NET and "managed"
C++ and not simply true C++? Not only that, in many of MS' books that deal
with .NET, they say on the one hand that C++ is "not left orphant" but on
the other hand, most if not all examples are in VB or C#... - no mentioning
of C++. Moreover, many things simply require VB and/or C# (both of which are
MS proprietary stuff par excellence and of no particular advantage compared
to other languages) or "managed" C++ at best. I heard that VS 2005 is
suppose to somewhat rectify on this situation but I have my big doubts about
it.

For obvious reasons (even though MS trys to hide that fact) MS is trying to
keep the development community as a captive community (resulting also a
captive product market) with all those akward .NET/C#/"managed C++" (as if I
need MS to "manage" my C++...). Imagine that the API would be a simple TRUE
(PURE) standard C++ interface - one could then easily port his application
to many OS, perhapse with few #ifdefs, which is obviously against MS's
interest.
Is there any non-morbid reason for the creation of C#? Isn't that
proprietary par excellenace? Nobody could ever give me an non-morbid reason
for the creation of C#. C++ is too complicated for many programers? Fine,
for those who find the full C++, especially including template perhaps etc.,
too complicated - don't use the full power of it - use only the simpler
portions of it and everybody is happy.

I think that this unnecessary complicated, cumbersome and moving target API
is my main problem. And that is why I was trying "to cling" to .hta. But, as
I wrote originally, that approach may be too good to be true.
 
Back
Top