Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Making a Visual C++ Wizard and getting Security warning....

2 views
Skip to first unread message

mr.sir bossman

unread,
Sep 5, 2006, 8:43:02 AM9/5/06
to
I am making a Visual C++ wizard...
http://msdn2.microsoft.com/en-us/library/c2a19k26.aspx

..and I am having a problem with security. My webpage loads into the Visual
C++ template wizard(new project) but I get the error "To help protect your
security, your web browser has restricted this file from showing active
content that could access your computer. Click here for options."

How do I turn this off?

Eric Hill

unread,
Sep 5, 2006, 10:09:01 AM9/5/06
to mr.sir bossman

I get the same message with a third party set of components that installs
a wizard. I haven't been able to get it to go away, though it doesn't
seem to hurt anything either as the wizard runs normally.

Eric

mr.sir bossman

unread,
Sep 5, 2006, 10:35:02 AM9/5/06
to
Exactly. It just has to be something in the wizard process I am forgetting
to do...God help me I can't find it :(

In case anyone wants to check my work I used the below link(best site could
find) to do my wizard:
http://siddhant.name/text/appwiznet.html

It(appwizard on site) also does the same thing. :(

William DePalo [MVP VC++]

unread,
Sep 5, 2006, 10:59:53 AM9/5/06
to
"mr.sir bossman" <mrsirb...@discussions.microsoft.com> wrote in message
news:69577568-EE17-4B27...@microsoft.com...

This is more an issue with the browser than with VC++, no? I think the
"problem" is that your page either hosts an ActiveX control (look for
<object>) or a script block (<script>).

I might be wrong, but I think that the error is tripped when the browser is
about to download a control (or script?) that is not already present on the
box:

http://support.microsoft.com/kb/843017/

Regards,
Will


mr.sir bossman

unread,
Sep 5, 2006, 11:30:02 AM9/5/06
to

Yes, that is exactly what is happening, VC++ host a webcontrol(new project
wizards) and it is tripping an error when it hits the script in my page...The
question is, how do I tell VC++ webcontrol not to do this.
>
I used this guys(His wizard causes the same error) site(best I could find)

I compared his wizard to WTL and Ogre3ds wizard and the code isn't that much
different...I mean besides no error that is. I just don't know where I am
getting it wrong in the process.

mr.sir bossman

unread,
Sep 6, 2006, 1:47:01 AM9/6/06
to
Quote Microsoft:
Author HTML Pages
Visual Studio has an HTML editor, which supports a design view as well as a
source view, and gives you a practical way to edit the visual components of
your wizard. Wizards can utilize any number of HTML features and we include a
stylesheet, which you can also customize. You can include custom elements in
your pages and reference external sites; however, you should keep security in
mind. The wizard pages run in a custom zone of Internet Explorer. This zone
allows execution of JScript code and access to safe-for-scripting ActiveX
controls, but it disallows many other operations. For example, accessing a
non-safe-for-scripting ActiveX control will result in a 'gold bar' showing up
on your wizard.
////
>
BTW, I tinkered around with my code and it becomes safe if I add just <link>
to my head section of my HTML file. It's weird.
0 new messages