473,700 Members | 2,866 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# Component for non .NET clients

Using C# Express, I am able to create a DLL that is usable by non .NET
clients such as Excel.
// Create a late bound instance, works
Set CDLL = CreateObject("C lassLibrary1.Cl ass1")
// Call a method in it, works
CDLL.MyMethod

That is, all the methods are exposed. However, none of the properties within
the DLL are exposed (are visible) and neither are the events.

How do I expose the Properties & Events?

Thanks for your help.
Jan 11 '06 #1
2 1215
"AA2e72E" <AA*****@discus sions.microsoft .com> wrote in message
news:9F******** *************** ***********@mic rosoft.com...
How do I expose the Properties & Events?


http://www.codeproject.com/csharp/com_object_in_c_.asp
Jan 11 '06 #2
Thanks Mark.

I also found this useful:

http://www.codeproject.com/dotnet/nettocom.asp

"Mark Rae" wrote:
"AA2e72E" <AA*****@discus sions.microsoft .com> wrote in message
news:9F******** *************** ***********@mic rosoft.com...
How do I expose the Properties & Events?


http://www.codeproject.com/csharp/com_object_in_c_.asp

Jan 11 '06 #3

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

Similar topics

1
1274
by: Plantex | last post by:
Hello, I have a DLL, created by VS .Net and written in C#. I would like to create a COM component from this dll, 'cause I'd like to call this component from a MSMQ Trigger... How could I create create this COM component from the DLL? Thank you
5
2390
by: David | last post by:
Hi everyone, I have a ActiveX EXE component written in VB6. This ActiveX EXE exposes various public methods that can be called by several other independent Windows EXE applications (also written in VB6). I would like to port the ActiveX EXE component it to dotNet. What type of project that I should port it to? A Windows Service or what? Please suggest. The thing is that I will not be porting the existing Windows EXE
1
2661
by: Ambush | last post by:
I am currently working on one of those projects that we all dread. The type that keeps growing out of scope faster than you can finish the component to deliver what they've already asked for. Including maybe, needing to develop things in languages / ways that you have never developed before. That precursor out of the way, here's my situation. My client is reshipping things via UPS. We have an interface to the UPS API which will...
2
1396
by: Mark Broadbent | last post by:
Please guys save me from throwing my laptop throught the window grrr. No one answered my original post so here is a reworded version. I am working through some study material but have hit a brick wall. Im sure this is simple. I have a dot net component that I have imported into the COM+ catalog via regsvcs. My study text says that I need to make the dot net dll available to COM by adding it to the GAC (which I have done ....GACUTIL). ...
2
1139
by: yaron | last post by:
Hi, I am writing a new networking component (dll). I have a few questions : 1. if i write it with .NET 2 , am i decreasing the number of potentials clients of my component ? 2. if the API to my component is compatible with .NET 1.1 but my component use inside it .NET 2.0 , can a NET 1.1 clients use my component ? do they need .NET 2 instalation ?
7
2224
by: Joe | last post by:
Is it possible to have a component which is global to the entire application? I need to have a single component act sort of like a server which components in any of the forms can access. For example if I drop a component on Form1 & Form2 and that component has a property called Server, at design time I would like to be able to assign the global component to the Server property. I'm sure I'm asking for way too much...
1
1315
by: Lucy Luo | last post by:
Hi, I'd like to create a "component" for web page. It should contain menu/ buttons and will have pop up dialogs. It should also be able to access user's PC (installation of java/activeX is OK). The component will be packaged so other web programmers can easily include it in their pages. The component will be able to access and modify the information on the host page too. All the browsers need to be supported.
0
1165
by: Juan Zamudio | last post by:
Hi, i asked this question in the component services group but appears to be dead, so i hope is ok to ask the question here, Is possible to use the same DLL for a .net application and for COM+?. I need the same code to be available for .Net (windows forms app) and regular asp clients (asp 3.0), my class inherits from ServicedComponent so I can register it for COM+ in the server so the asp clients can call it, and added a reference to the...
3
1739
by: iyengar.sheshadri | last post by:
Hi All, Currently we have COM component(dll) implemented using ATL. Because of the current business requirements, we would like to rewrite the COM component in Managed C++ and the clients will be unmanaged C++ and C# . I have been searching net to find some sample code and but could not get it.
0
2075
by: fiona | last post by:
Yucca Valley, CA, - October 2007: Catalyst Development Corporation, publisher of SocketTools, SocketWrench and LogicGem, today announced the release of Catalyst File Transfer .NET V5.0. For developers who are creating .NET applications, the File Transfer .NET component offers a comprehensive interface for uploading and downloading files. The Catalyst File Transfer .NET component is a managed code component that is fully compatible with...
0
8721
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 usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8642
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9209
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9069
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8964
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5900
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4400
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4653
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2024
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.