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

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



Hi,
As promised, I've created an article on CodeProject.com
which describes the solution which I have created. Please read the
article to find out more...

http://www.codeproject.com/KB/cs/CSharp_and_Scripting_New.aspx

Cheers,
Bharat.


On Feb 1, 4:29 pm, zorrothefox.gro...@xxxxxxxxx wrote:
Hi,
Thanks a lot for all your replies. I found the link you gave to
be quite good. I've successfully managed to get perl to interact with
my .net c# class library. I'll post the details once I have cut the
code to the minimum requirements.

Thanks,
Bharat.

On Jan 25, 7:46 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA

laceupsolutions.com> wrote:
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 Machinhttp://www.laceupsolutions.com
Mobile & warehouse Solutions.<zorrothefox.gro...@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