Accessing from C# to an vb dll
- From: jaume.pf@xxxxxxxxx
- Date: 15 Jan 2007 09:21:10 -0800
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!
.
- Follow-Ups:
- Re: Accessing from C# to an vb dll
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Accessing from C# to an vb dll
- From: Adam Clauss
- Re: Accessing from C# to an vb dll
- Prev by Date: Re: So long, farewell, auf Wiedersehen, goodbye.
- Next by Date: Using Multi threading
- Previous by thread: Where are the 'most often used program' shortcuts?
- Next by thread: Re: Accessing from C# to an vb dll
- Index(es):
Relevant Pages
|
|