S
S Hall
I'm doing a CSharp example of a DLL.
It has two classes:
// Add two numbers
using System;
namespace MyMethods
{
public class AddClass
{
public static long Add(long i, long j)
{
return(i+j);
}
}
}
// Multiply two numbers
using System;
namespace MyMethods
{
public class MultiplyClass
{
public static long Multiply(long x, long y)
{
return (x*y);
}
}
}
I made it into a DLL and I did not get any errors.
I made it into an EXE and it worked OK.
However when I try to do a
regasm mytest.DLL /out:mytest.tlb
I get: regasm error: unknown option: /out
I also tried to :
regasm mytest.dll /reg:mytest.reg
I get: regasm error: Ambiguous option: /reg
Any comments of how to correct this?
TIA
Steve
It has two classes:
// Add two numbers
using System;
namespace MyMethods
{
public class AddClass
{
public static long Add(long i, long j)
{
return(i+j);
}
}
}
// Multiply two numbers
using System;
namespace MyMethods
{
public class MultiplyClass
{
public static long Multiply(long x, long y)
{
return (x*y);
}
}
}
I made it into a DLL and I did not get any errors.
I made it into an EXE and it worked OK.
However when I try to do a
regasm mytest.DLL /out:mytest.tlb
I get: regasm error: unknown option: /out
I also tried to :
regasm mytest.dll /reg:mytest.reg
I get: regasm error: Ambiguous option: /reg
Any comments of how to correct this?
TIA
Steve