Re: Creating C# components to be usable with multiple languages

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,

You can make your library callable like a COM component,
I do not know if Perl support COM (I assume it does)
I did this a time ago to be able to run .NET code from ArcGIS. Take a look
at tis link:
http://www.orcca.on.ca/~elena/useful/CallingDotNetCodeFromCom.html




--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
<zorrothefox.groups@xxxxxxxxx> wrote in message
news:d6169630-3907-445a-b3aa-7b446c857f4a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am currently working on a project that requires some key
functionality to be implemented as a c# class library. This is
currently only called from a C# GUI Application. Now the scenario is
that we need this class library to be callable from a c# GUI, a c++
com client, or a Perl script.

My first question is, is this possible? If so, how do I go about
changing the c# class library to achieve this.

My second question is:
I need to support callback functions in this
class library. For example, the c++ client might call a function
Analyze() in the c# class library. Now, this Analyze() is a very
length operation. So, it'd be good if the C# library could call back a
function in my c++ client once in a while (say to update a progress
indicator). How would I go about supporting this? It'd also be great
if I could implement this in a way where even a perl script (say)
could be called back.

I don't know if I'm asking for too much here. Any tips, or references
are appreciated. Though even detailed step-by-step information would
be welcome ;-)

Thanks in advance,
Bharat.


.



Relevant Pages