J
jaume.pf
Hi,
I've a vb dll with a function that i want to access from C#. I'm using
the following:
public class library
{
[DllImport("myDll.dll", CharSet = CharSet.Auto, EntryPoint =
"clsLibrary")]
public static extern void create();
}
and:
library.create();
but i'm getting Sytem.DllNotFoundException. Nothing helped to add the
library to the references of my C# project.
I don't know what can i be doing wrong. I don't know if i have to make
the call in another way, or maybe i've to compile my vb library in a
particular way. Can anybody help me?
Thank you very much for your time!
I've a vb dll with a function that i want to access from C#. I'm using
the following:
public class library
{
[DllImport("myDll.dll", CharSet = CharSet.Auto, EntryPoint =
"clsLibrary")]
public static extern void create();
}
and:
library.create();
but i'm getting Sytem.DllNotFoundException. Nothing helped to add the
library to the references of my C# project.
I don't know what can i be doing wrong. I don't know if i have to make
the call in another way, or maybe i've to compile my vb library in a
particular way. Can anybody help me?
Thank you very much for your time!