D
Dani
Dani,
I am goint to get crazy. I hate dll but... Ok, sorry my english, i am spanish. I am have been making some sample try. I implement a simple class in c#.
using System;
namespace p1
{
public class Hello {
public static string getHello(){ return "HELLO"; }
}
}
then, i compile it, i use csc /t:library simple.cs, it return me a fantastic simple.dll. Ok. Well Done, it works fine. But... Ok I continue. Then I implement a application in c# also. My code...
using System;
using System.Runtime.InteropServices;
namespace p2
{
class Class1
{
[DllImport("simple.dll")]
static extern string getHello();
static void Main()
{
Console.WriteLine(getHello());
}
}
}
then i compile it and a get a nice executable. I run it a get an
Excepción no controlada del tipo 'System.EntryPointNotFoundException' en Class1.exe
Información adicional: No se puede encontrar el punto de entrada en el archivo DLL simple.dll.
I'm going to translate ( I can do it, i think...)
EXCEPTION : System.DllNotFoundException.
CAN FIND ENTRY POINT IN DLL SIMPLE.DLL
I know that import dinamic dll is posibile with Reflexion, buy i am going to use it under Compact Framework, and Reflexion class is not supported in it.
Can someone help me???
Thanks.
I am goint to get crazy. I hate dll but... Ok, sorry my english, i am spanish. I am have been making some sample try. I implement a simple class in c#.
using System;
namespace p1
{
public class Hello {
public static string getHello(){ return "HELLO"; }
}
}
then, i compile it, i use csc /t:library simple.cs, it return me a fantastic simple.dll. Ok. Well Done, it works fine. But... Ok I continue. Then I implement a application in c# also. My code...
using System;
using System.Runtime.InteropServices;
namespace p2
{
class Class1
{
[DllImport("simple.dll")]
static extern string getHello();
static void Main()
{
Console.WriteLine(getHello());
}
}
}
then i compile it and a get a nice executable. I run it a get an
Excepción no controlada del tipo 'System.EntryPointNotFoundException' en Class1.exe
Información adicional: No se puede encontrar el punto de entrada en el archivo DLL simple.dll.
I'm going to translate ( I can do it, i think...)
EXCEPTION : System.DllNotFoundException.
CAN FIND ENTRY POINT IN DLL SIMPLE.DLL
I know that import dinamic dll is posibile with Reflexion, buy i am going to use it under Compact Framework, and Reflexion class is not supported in it.
Can someone help me???
Thanks.