Is there someway to send my code so that someone can tell me what is happening?
The problem is I have tested my method in a simple main program but when I copy this to my dll and then call the method through the dll I get a run time array error. No changes except dropping the "static" qualifier
Loading
analyticPosted Jun 6, 2007, 12:17 PM
analyticPosted Jun 6, 2007, 8:42 AM
analysis.Transform does not contain a definition for tt()
Jan MontanoPosted Jun 6, 2007, 3:47 AM
namespace analysis
{
}
Then I made a client console just to test it with this code:
using System;
using System.Collections.Generic;
using System.Text;
using analysis;
namespace ConsoleApplication1
{
}
Jan MontanoPosted Jun 6, 2007, 3:39 AM
copying your code results in compile error. I guess there are typo errors. But after modifying the sample code, I get it to work. You should have no problem accessing the tt function from the dll.
I just added reference of my client code to the debug dll of analysis and it works fine.
analyticPosted Jun 6, 2007, 2:54 AM
namespace analysis
{
public class Transform;
public Transform()
{}
public void tt(double[] a);
{
a[0] = 2.3; a[1] = 1.4];
}
}
}
Using System;
using analysis;
using utilities;
namespace Test
{
private static TextWindow;
public static Main()
{
double[] a = new double[5];
Transform t = new Transform();
w = new TextWindow("Test");
a[0]=1.0; a[1]=1.0;
t.tt(a);
ww.showWindow();
}
}
I now get a build error saying tt() is not defined in analysis.Transform
I am not sure what is going on here. Any help will be appreciated.
Jan MontanoPosted Jun 5, 2007, 11:41 PM