Hello All.
these are steps for inteoperability between c# and delphi..
I have created c# dll /this is my class library
using System;
namespace cfactorial
{
/// <summary>
/// Summary description for Class.
/// </summary>
public class Factorial
{
public int ComputeFactorial(int n)
{
int intFactorial=n;
for(int i=1;i<n;i++)
{
intFactorial*=i;
}
return intFactorial;
}
public int DoubleNumber(int n)
{
return n*2;
}
}
}
then i have to install this cfactorial.dll in GAC
command is gacutil /i cfactorial.dll
Then I have to register this dll by using regasm
then regasm cfactorial
Then i have to create TLB file (cos i have to use this dll in delphi)
so tlbexp cfactorial.tlb
then open delphi .. import this tlb u will get pas file.. from this....
then my que is
i want to call this two function ie computefacotial n double number
in form of delphi i wrote in uses cfactorial_TLB
then i create objects
ie var obj:Tfactorial(i can see when i used ctrl+space list.. tfactorial is
display in list)
but how to call these two function
obj.computefactorial gives me error
please guide me also correct where I am going wrong
how to call these two function please please please help me...
sonia
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
[Non-text portions of this message have been removed]
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/