Hi,
Can you create ActiveX controls in C# for reuse on IE, MFC 6.0, ASP classic,
as well as .NET?
Thanks,
Yama 5 1508
Yes.
You have to Register for COM Interop, create the appropriate Interface
attribute (easiest is AutoDual although COM purists discourage). And usually,
helps to regsiter the .NET library in the GAC.
However there are other tricky items, so some study is recommended.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Yama" wrote: Hi,
Can you create ActiveX controls in C# for reuse on IE, MFC 6.0, ASP classic, as well as .NET?
Thanks,
Yama
"Yama" <ya**@yamabiz.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl... Hi,
Can you create ActiveX controls in C# for reuse on IE, MFC 6.0, ASP classic, as well as .NET?
Thanks,
Yama
The answer is NO, C# (and other managed languages) can only author Windows
Forms Controls.
And, the only supported container for WFC's (through a COM Callable Wrapper)
is IE5.01 and higher, other containers like MFC 6 and VB6 are not supported.
Note that MFC 7.1 and higher can host native (not using COM interop) Windows
Forms Controls.
Willy.
Whatever happened to .VBD??? That one was even worst than ActiveX... Gosh do
I miss writing Applets...
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:u3**************@TK2MSFTNGP15.phx.gbl... "Yama" <ya**@yamabiz.com> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... Hi,
Can you create ActiveX controls in C# for reuse on IE, MFC 6.0, ASP classic, as well as .NET?
Thanks,
Yama
The answer is NO, C# (and other managed languages) can only author Windows Forms Controls. And, the only supported container for WFC's (through a COM Callable Wrapper) is IE5.01 and higher, other containers like MFC 6 and VB6 are not supported. Note that MFC 7.1 and higher can host native (not using COM interop) Windows Forms Controls.
Willy.
Peter,
You are right this one is a mind bugler hey?! I found this: http://blogs.msdn.com/infopath/archi...15/408728.aspx (similar to
what you were discussing). But as you can see it'd use all the System.Object
namespaces. So in the end the user will only be able to view the controls if
they have .NET gacked. LOL
Yama http://www.yamabiz.com/ http://yama.yamabiz.com/
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:8C**********************************@microsof t.com... Yes. You have to Register for COM Interop, create the appropriate Interface attribute (easiest is AutoDual although COM purists discourage). And usually, helps to regsiter the .NET library in the GAC.
However there are other tricky items, so some study is recommended. Peter
-- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com
"Yama" wrote:
Hi,
Can you create ActiveX controls in C# for reuse on IE, MFC 6.0, ASP classic, as well as .NET?
Thanks,
Yama
VB6 is still around, MFC and ATL , not to mention Delphi, enough choices to
build AX controls I presume.
Willy.
"Yama" <ya**@yamabiz.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl... Whatever happened to .VBD??? That one was even worst than ActiveX... Gosh do I miss writing Applets...
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message news:u3**************@TK2MSFTNGP15.phx.gbl... "Yama" <ya**@yamabiz.com> wrote in message news:%2***************@TK2MSFTNGP10.phx.gbl... Hi,
Can you create ActiveX controls in C# for reuse on IE, MFC 6.0, ASP classic, as well as .NET?
Thanks,
Yama
The answer is NO, C# (and other managed languages) can only author Windows Forms Controls. And, the only supported container for WFC's (through a COM Callable Wrapper) is IE5.01 and higher, other containers like MFC 6 and VB6 are not supported. Note that MFC 7.1 and higher can host native (not using COM interop) Windows Forms Controls.
Willy.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: AnalogKid |
last post by:
Short question:
What's the difference between SingleUse and MultiUse ?
Long question:
I've been writing some sample code to see how different Instancing
values and threading models work. I...
|
by: wang xiaoyu |
last post by:
Hello:
i want use activex in wxpython program,but when i use MakeActiveXClass
an exception occurs.
this is my source code dealing the DICOM ocx.I must note that in this
program "hwtxcontrol" is...
|
by: Fie Fie Niles |
last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX
controls (created on VB6) on the Internet Explorer browser. I put the same
ActiveX control in a VB program, and when I run...
|
by: Pippen |
last post by:
I'm getting a little confused about what is supported in MS-SQL ActiveX and
what is Visual Basic and what is VBScript. Can someone please point me to a
website, recommend a book or if I've missed...
|
by: A.M. |
last post by:
Hi at all,
how can I do to insert into a HTML page a file .txt stored in the same
directory of the server where is the html file that must display the text
file.txt?
Thank you very much
P.Pietro
|
by: Ike |
last post by:
I have an Activex Control created in VB6, which, displays no problem on any
machine I have, but, on some machines of others, it does not. All machines
are running either XP or Windows 2000, and all...
|
by: DartmanX |
last post by:
Is there a simple way to determine if someone using Internet Explorer
has completely disabled ActiveX controls?
Jason
|
by: Jarod_24 |
last post by:
I just downloaded a activex control that was written in C# and tried to view
it on my PDA's Internet Explorer.
At my regular PC it displayed just fine, but nothing showed up on the pda.
Do...
|
by: Wilfried Mestdagh |
last post by:
Hi,
I have a C# application (VS2005) with Microsoft Mappoint activeX control on
a form. At a certain moment I want to create a second one temporary in code.
This seems not to work, when I try to...
|
by: hufaunder |
last post by:
I have an ActiveX component that I want to use in a library that I am
writing. As a first test I used the ActiveX component in a windows
form application. Adding the component created:
Ax.dll...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |