473,326 Members | 2,111 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,326 software developers and data experts.

C# supports of .NET

Hello,

I'd like to know whether C# supports COM objects, ActiveX ?

Does this behaviour takes much different then old fashions visual studio C
versions ?

Need sample code, please.

Thanks :)

Nov 15 '05 #1
1 1066
Eitan,

.NET supports the use of ActiveX controls and COM objects from within
it. Some things are slightly different (for example, you have garbage
collection in .NET, so you have to be aware of when you release your COM
objects and do it explicitly, also, there is a perf overhead for making COM
calls, etc, etc), but it is supported a great deal.

You can also create COM objects (as well as ActiveX controls, but they
are not supported) as well. The model for this is a little different
depending on your background. If you are used to using ATL to create your
COM objects, then the .NET way will be much easier, and welcome (IMO). If
you are coming from a VB background, and don't know about things like GUIDs,
IIDs, and the like, you might find it more daunting.

For more information on how to use COM objects in .NET as well as author
types in .NET for COM, check out the section of the .NET framework
documentation titled "COM Interoperability in Visual Basic and Visual C#",
located at (watch for line wrap):

http://msdn.microsoft.com/library/de...sicvisualc.asp

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Eitan" <no************@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello,

I'd like to know whether C# supports COM objects, ActiveX ?

Does this behaviour takes much different then old fashions visual studio C
versions ?

Need sample code, please.

Thanks :)

Nov 15 '05 #2

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

Similar topics

5
by: wylbur37 | last post by:
How do you find out what version of JavaScript your browser supports? Is there a JavaScript function that will tell you? __________________________________ Do you Yahoo!? Find out what made...
2
by: deba | last post by:
From the documentation of SOAP it seems SOAP supports both HTTP and TCP protocol.I did not find much documentation how to use TCP as transport layer in SOAP? Does the SOAP toolkit 2.0 supports...
1
by: Wei-Chao Hsu | last post by:
On IA-32, 16 bytes float has supported in Fortran. Is there any C++ compiler supports 16 bytes float?
1
by: Ashabul Yeameen | last post by:
I am writing a program which at some point need to call fputwc() function. But since I want to make this code portable I've decided to write my own fputwc() funcion where the compiler doesn't...
2
by: MrB | last post by:
Hi, I'm writing an asp.net app in vb.net and many of my ascx classes support an interface IAutoSave, but some do not. I want to test in my code if the class behind a given ascx control supports...
0
by: jg | last post by:
just for those who have to deal with legacy application that supports COM, OCX, and WINAPI(_stadcall) - c-style?, I worked out the COM interface for function out array parameters. For example...
3
by: cwalker | last post by:
I have an application I'm supporting that needs to determine whether or not a CPU supports Uni/Multi-processors or just ACPI. The original developer determined this by testing the CPUID features...
3
by: BLUE | last post by:
Only SQL Server 2005 or also DB2, Oracle and MySQL? Thanks, Luigi.
0
ADezii
by: ADezii | last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be: Can I add New Records to the...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: 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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.