473,569 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IObjectSafety How do I do it?

Hi
Have been following the following example that creates an ActiveX in C#
which I call from a local HTML page via Javascript (XP Pro IE6) however it
always pops up a warning I have been told I need to implement IObjectSafety
But I don't Have a clue!!!

http://www.devhood.com/messages/mess...hread_id=16569

Could someone tell me how I would extend this example so it uses
IObjectSafety please.

Thanks
May 7 '06 #1
1 6625
Adrian,

Why are you bothering creating an ActiveX in C#? It's an unsupported
hack which is fragile, and not recommended.

Why not host a windows forms control in IE? Check this out:

http://samples.gotdotnet.com/quickst...eSourcing.aspx

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Adrian" <ad****@nospam. comk> wrote in message
news:pK******** ************@bt .com...
Hi
Have been following the following example that creates an ActiveX in C#
which I call from a local HTML page via Javascript (XP Pro IE6) however it
always pops up a warning I have been told I need to implement
IObjectSafety
But I don't Have a clue!!!

http://www.devhood.com/messages/mess...hread_id=16569

Could someone tell me how I would extend this example so it uses
IObjectSafety please.

Thanks

May 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3360
by: Simon CJC | last post by:
Hello I use AxSHDocVw.AxWebBrowser in a windows application. But sometimes the url I browsed in AxSHDocVw.AxWebBrowser contains error caused by javascript. Can I prevent javascript from running in AxSHDocVw.AxWebBrowser Thanks Simon CJC
4
4454
by: lwickland | last post by:
Non-visual C# objects on a webpage are not marked as "safe for scripting" I'm developing .NET components in C# which are used as ActiveX-style controls on web pages that are displayed inside a custom browser which is based on the IE web browser control. On 3 of about 100 PCs that the controls have been tried on, the browser produces the...
1
1530
by: Chris Zoper | last post by:
Hello, I've developed an ASP.NET application and I use an ActiveX control in it. The ActiveX control is developed in Visual Basic 6.0. Each time a page with the ActiveX control is loaded, I get the message that describes that the ActiveX control isn't marked as save. Does anyone know how I can mark my ActiveX (VB 6.0) control as save, so...
1
2075
by: Chris Zoper | last post by:
Hello, I've developed an ASP.NET application and I use an ActiveX control in it. The ActiveX control is developed in Visual Basic 6.0. Each time a page with the ActiveX control is loaded, I get the message that describes that the ActiveX control isn't marked as save for scripting. Does anyone know how I can mark my ActiveX (VB 6.0)...
4
23355
by: fniles | last post by:
I have an ActiveX control in my web page that I tried to access using intranet. I have implemented IObjectSafety in the ActiveX control, and when I created the CAB file using VB Pakage and Deployment Wizard, under "Safety Settings" I selected "Yes" for "Safe for Scripting" and "Yes" for "Safe for Initialization". I also have signed the CAB...
1
957
by: fniles | last post by:
Our application which was written in classic ASP uses some ActiveX controls (with IObjectSafety Implementation and we created CAB files and sign them). In ASP.NET, can we use ActiveX controls also, or do you suggest to do it differently ? Thanks.
5
5946
by: fniles | last post by:
We created an ActiveX control and marked it as safe for scripting using Implements IObjectSafety. We then created a CAB file and signed it using Verisign. We also created a license file (LPK file) for it. We use this control on an ASP page. We put the CAB file for the AX control and VBRun60.CAB in the same folder with all the ASP files....
2
1438
by: exr | last post by:
The project I am doing requires custom functionality from a DLL executed from with Internet Explorer. The DLL is written in VB 2005. The DLL resides on the local machine, where it is registered with Regasm. The DLL implements iObjectSafety in order to allow IE to load it with an OBJECT tag. IE loads the DLL without error. The first time you...
0
833
by: CodeSpanker | last post by:
I have a class library that is COM visible as it is instantiated via webpage. V1 of this class library is live and has been installed on client machines so that when they navigate to http://MySuperPage.com it is instantied via document.write('<object id=MyClassLibrary classid="clsid:457B56D5-9D7C-1263-AD19-702596EDC095"></object>'); ...
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.