473,394 Members | 1,703 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,394 software developers and data experts.

Can i migriate acitvex to .Net ?

hi all:
i have these activex source codes, and can i migriate them to .Net 2.0?
and how?
Further more , in VS2005, can i create project like activex?

thanks any reply in advanced.

DingLi
Feb 23 '06 #1
1 904
It is relatively easy to make a component written in C# into an activex
component. Do some research in the following items

[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatc h)]
public interface IFlowViewCtrlEvents
{
// called when a new step is selected
[DispId(1)] void StepSelected(string StepName);
}

[ComVisible(true)]
[SuppressUnmanagedCodeSecurityAttribute] // Allow calls out to AX
container without stack walk
[ClassInterface(ClassInterfaceType.AutoDual)] // expose this class as
the default interface
[ComSourceInterfaces(typeof(IFlowViewCtrlEvents))] // expose this event
interfaces
public class FlowViewControl : System.Windows.Forms.UserControl,
interop.hwdatadestination.IHwPropCollApp
{
}

gacutil
regasm

The component must be strongly keyed and registered in the GAC. Any
referenced assembly must also be keyed and registered in the GAC.

Hope this helps
Leon Lambert

SmartGuy wrote:
hi all:
i have these activex source codes, and can i migriate them to .Net 2.0?
and how?
Further more , in VS2005, can i create project like activex?

thanks any reply in advanced.

DingLi

Feb 23 '06 #2

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

Similar topics

2
by: Kapish Kalda | last post by:
Hi, I am using Inet AcitveX to download a file form Http.(code below) but couldnot able to download. The file size is about 2MB. Please Suggest. Thanks Code Private Sub Command1_Click()
3
by: S C A | last post by:
Dear All: I'm not sure if this is even possible but does anyone know about using ActiveX controls (a Microsoft-specific technology) in Java? I am having a heck of a time finding some similar...
2
by: Mehr H | last post by:
I have been working on this for several days and am still have had no success in achieving this. Pleae help. It seems that documentation for this is very limited. I have looked in several books and...
0
by: Johnny M | last post by:
I have a form in Access 2003 with WMPlayer.OCX.7 control on a form that plays an .asf file. I open it from another form with a command button that loads the appropriate file and the file starts and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...

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.