473,320 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

c++ user control in ie browser

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
6 1875
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
2
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
0
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
3
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
2
by: tshad | last post by:
User VS 2003, I would like to use User Controls to control the page look with 3 User Controls (...PageTop.ascx, ...NavigateTop.ascx and PageBottom.ascx). I would put the Content User control...
7
by: Christian Cambier | last post by:
Hi, I have a textbox in a web user control. I then add the usercontrol to a web form. I also add a label in the web form. Now, when I press a key in the textbox, i want to display some text...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.