By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,635 Members | 1,703 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,635 IT Pros & Developers. It's quick & easy.

c++ user control in ie browser

P: n/a
I am trying to display a user control contained within an c++ assembly in
internet explorer.

When I create an equivalent user control in c#, it displays just fine.

Before I get into specifics, is it possible to do the same with a c++ user
control or is this another example of c++ being a second class citizen in
..NET?

..NET 1.1
IIS 5.1
IE 6.0

Thanks,
George Economos
Nov 17 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Given the right security context, given that you have no unmanaged
dependencies or that they have already been deployed correctly, this should
work. What are you seeing?

Ronald Laeremans
Visual C++ team

"George Economos" <no****@hatespammers.com> wrote in message
news:OW*************@TK2MSFTNGP10.phx.gbl...
I am trying to display a user control contained within an c++ assembly in
internet explorer.

When I create an equivalent user control in c#, it displays just fine.

Before I get into specifics, is it possible to do the same with a c++ user
control or is this another example of c++ being a second class citizen in
.NET?

.NET 1.1
IIS 5.1
IE 6.0

Thanks,
George Economos

Nov 17 '05 #2

P: n/a
On the web page I see a rectangle where the control should be. I am figuring
it is a security issue because I get the same rectangle in the equivalent c#
user control if I override the wndproc method (this I understand is an
security issue).

The control does not call any unmanaged code, nor have a linked in any other
libraries that aren't included by default.

I also have not configured any security policies on my local machine. I am
assuming then the control is running in the context of the AppDomain that ie
creates for the control. (I'm not 100% sure of this point) However, like I
said, an equivalent c# user control loads fine.

I should add that I am trying to load the control from the intranet.

All this brings up an issue for me anyway. In the end my c++ control will
end up calling unmanaged code. I need to use DirectShow to display some
video streams and WMP will not suffice.

What would be the best way to deploy this control that is simplest for the
end user ( certificates, policies )? I'm not sure if this is in your
department or not. I know its not in mine!

George Economos
"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Given the right security context, given that you have no unmanaged
dependencies or that they have already been deployed correctly, this should work. What are you seeing?

Ronald Laeremans
Visual C++ team

"George Economos" <no****@hatespammers.com> wrote in message
news:OW*************@TK2MSFTNGP10.phx.gbl...
I am trying to display a user control contained within an c++ assembly in
internet explorer.

When I create an equivalent user control in c#, it displays just fine.

Before I get into specifics, is it possible to do the same with a c++ user control or is this another example of c++ being a second class citizen in .NET?

.NET 1.1
IIS 5.1
IE 6.0

Thanks,
George Economos


Nov 17 '05 #3

P: n/a
Hi George,

I am asking someone on the team responsible for hosting the controls in the
browser about what the security configuration issues are.

Ronald

"George Economos" <no****@hatespammers.com> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
On the web page I see a rectangle where the control should be. I am
figuring
it is a security issue because I get the same rectangle in the equivalent
c#
user control if I override the wndproc method (this I understand is an
security issue).

The control does not call any unmanaged code, nor have a linked in any
other
libraries that aren't included by default.

I also have not configured any security policies on my local machine. I am
assuming then the control is running in the context of the AppDomain that
ie
creates for the control. (I'm not 100% sure of this point) However, like
I
said, an equivalent c# user control loads fine.

I should add that I am trying to load the control from the intranet.

All this brings up an issue for me anyway. In the end my c++ control will
end up calling unmanaged code. I need to use DirectShow to display some
video streams and WMP will not suffice.

What would be the best way to deploy this control that is simplest for the
end user ( certificates, policies )? I'm not sure if this is in your
department or not. I know its not in mine!

George Economos
"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
Given the right security context, given that you have no unmanaged
dependencies or that they have already been deployed correctly, this

should
work. What are you seeing?

Ronald Laeremans
Visual C++ team

"George Economos" <no****@hatespammers.com> wrote in message
news:OW*************@TK2MSFTNGP10.phx.gbl...
>I am trying to display a user control contained within an c++ assembly
>in
> internet explorer.
>
> When I create an equivalent user control in c#, it displays just fine.
>
> Before I get into specifics, is it possible to do the same with a c++ user > control or is this another example of c++ being a second class citizen in > .NET?
>
> .NET 1.1
> IIS 5.1
> IE 6.0
>
> Thanks,
> George Economos
>
>



Nov 17 '05 #4

P: n/a
Thanks.

George Economos

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
Hi George,

I am asking someone on the team responsible for hosting the controls in the browser about what the security configuration issues are.

Ronald

"George Economos" <no****@hatespammers.com> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
On the web page I see a rectangle where the control should be. I am
figuring
it is a security issue because I get the same rectangle in the equivalent c#
user control if I override the wndproc method (this I understand is an
security issue).

The control does not call any unmanaged code, nor have a linked in any
other
libraries that aren't included by default.

I also have not configured any security policies on my local machine. I am assuming then the control is running in the context of the AppDomain that ie
creates for the control. (I'm not 100% sure of this point) However, like I
said, an equivalent c# user control loads fine.

I should add that I am trying to load the control from the intranet.

All this brings up an issue for me anyway. In the end my c++ control will end up calling unmanaged code. I need to use DirectShow to display some
video streams and WMP will not suffice.

What would be the best way to deploy this control that is simplest for the end user ( certificates, policies )? I'm not sure if this is in your
department or not. I know its not in mine!

George Economos
"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message news:%2******************@TK2MSFTNGP11.phx.gbl...
Given the right security context, given that you have no unmanaged
dependencies or that they have already been deployed correctly, this

should
work. What are you seeing?

Ronald Laeremans
Visual C++ team

"George Economos" <no****@hatespammers.com> wrote in message
news:OW*************@TK2MSFTNGP10.phx.gbl...
>I am trying to display a user control contained within an c++ assembly
>in
> internet explorer.
>
> When I create an equivalent user control in c#, it displays just fine. >
> Before I get into specifics, is it possible to do the same with a c++

user
> control or is this another example of c++ being a second class
citizen in
> .NET?
>
> .NET 1.1
> IIS 5.1
> IE 6.0
>
> Thanks,
> George Economos
>
>



Nov 17 '05 #5

P: n/a
Hi George,

The answer I got (very succinct because we are hard at work trying to get
Beta 1 of Whidbey out of the door) is that you will need to deploy security
policy to the client and that searching our docs with these keywords should
lead you to a decent explanation.

I did get a direct contact responsible for this area, so let me know if you
can't find the documentation or have found it but are still having problems.

Thanks.

Ronald

"George Economos" <no****@hatespammers.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Thanks.

George Economos

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
Hi George,

I am asking someone on the team responsible for hosting the controls in

the
browser about what the security configuration issues are.

Ronald

"George Economos" <no****@hatespammers.com> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
> On the web page I see a rectangle where the control should be. I am
> figuring
> it is a security issue because I get the same rectangle in the equivalent > c#
> user control if I override the wndproc method (this I understand is an
> security issue).
>
> The control does not call any unmanaged code, nor have a linked in any
> other
> libraries that aren't included by default.
>
> I also have not configured any security policies on my local machine. I am > assuming then the control is running in the context of the AppDomain that > ie
> creates for the control. (I'm not 100% sure of this point) However, like > I
> said, an equivalent c# user control loads fine.
>
> I should add that I am trying to load the control from the intranet.
>
> All this brings up an issue for me anyway. In the end my c++ control will > end up calling unmanaged code. I need to use DirectShow to display some
> video streams and WMP will not suffice.
>
> What would be the best way to deploy this control that is simplest for the > end user ( certificates, policies )? I'm not sure if this is in your
> department or not. I know its not in mine!
>
> George Economos
>
>
> "Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message > news:%2******************@TK2MSFTNGP11.phx.gbl...
>> Given the right security context, given that you have no unmanaged
>> dependencies or that they have already been deployed correctly, this
> should
>> work. What are you seeing?
>>
>> Ronald Laeremans
>> Visual C++ team
>>
>> "George Economos" <no****@hatespammers.com> wrote in message
>> news:OW*************@TK2MSFTNGP10.phx.gbl...
>> >I am trying to display a user control contained within an c++
>> >assembly
>> >in
>> > internet explorer.
>> >
>> > When I create an equivalent user control in c#, it displays just fine. >> >
>> > Before I get into specifics, is it possible to do the same with a
>> > c++
> user
>> > control or is this another example of c++ being a second class citizen > in
>> > .NET?
>> >
>> > .NET 1.1
>> > IIS 5.1
>> > IE 6.0
>> >
>> > Thanks,
>> > George Economos
>> >
>> >
>>
>>
>
>



Nov 17 '05 #6

P: n/a
I have read and reread the documentation. I have checked the permissions
using the configuration wizard. Even though is says my assembly has
"unrestricted" access I am still encountering problems. Maybe it is time
that I try that contact of yours...

Thanks,
George Economos

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:OO**************@TK2MSFTNGP10.phx.gbl...
Hi George,

The answer I got (very succinct because we are hard at work trying to get
Beta 1 of Whidbey out of the door) is that you will need to deploy security policy to the client and that searching our docs with these keywords should lead you to a decent explanation.

I did get a direct contact responsible for this area, so let me know if you can't find the documentation or have found it but are still having problems.
Thanks.

Ronald

"George Economos" <no****@hatespammers.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Thanks.

George Economos

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message news:uK**************@TK2MSFTNGP11.phx.gbl...
Hi George,

I am asking someone on the team responsible for hosting the controls in

the
browser about what the security configuration issues are.

Ronald

"George Economos" <no****@hatespammers.com> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
> On the web page I see a rectangle where the control should be. I am
> figuring
> it is a security issue because I get the same rectangle in the

equivalent
> c#
> user control if I override the wndproc method (this I understand is an > security issue).
>
> The control does not call any unmanaged code, nor have a linked in any > other
> libraries that aren't included by default.
>
> I also have not configured any security policies on my local machine. I
am
> assuming then the control is running in the context of the AppDomain

that
> ie
> creates for the control. (I'm not 100% sure of this point) However,

like
> I
> said, an equivalent c# user control loads fine.
>
> I should add that I am trying to load the control from the intranet.
>
> All this brings up an issue for me anyway. In the end my c++ control

will
> end up calling unmanaged code. I need to use DirectShow to display
some > video streams and WMP will not suffice.
>
> What would be the best way to deploy this control that is simplest

for the
> end user ( certificates, policies )? I'm not sure if this is in your
> department or not. I know its not in mine!
>
> George Economos
>
>
> "Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in

message
> news:%2******************@TK2MSFTNGP11.phx.gbl...
>> Given the right security context, given that you have no unmanaged
>> dependencies or that they have already been deployed correctly, this
> should
>> work. What are you seeing?
>>
>> Ronald Laeremans
>> Visual C++ team
>>
>> "George Economos" <no****@hatespammers.com> wrote in message
>> news:OW*************@TK2MSFTNGP10.phx.gbl...
>> >I am trying to display a user control contained within an c++
>> >assembly
>> >in
>> > internet explorer.
>> >
>> > When I create an equivalent user control in c#, it displays just

fine.
>> >
>> > Before I get into specifics, is it possible to do the same with a
>> > c++
> user
>> > control or is this another example of c++ being a second class

citizen
> in
>> > .NET?
>> >
>> > .NET 1.1
>> > IIS 5.1
>> > IE 6.0
>> >
>> > Thanks,
>> > George Economos
>> >
>> >
>>
>>
>
>



Nov 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.