Calling Managed Code From Unmanaged Code, System.DllNotFoundException

B

batista

Hi,

I have an unmanaged dll that uses callback to call a function
of managed code.Now the problem is that it's given error

"System.DllNotFoundException"

I read it's due to appdomian.
http://weblogs.asp.net/mdavey/archive/2004/02/25/79868.aspx

Since i don't want to use COM-interop(efficiency issues)
I used callback using function pointers.

But now i'm having this problem.

So, plz tell me is there any other way of
trying to call managed code from unmanaged code.

Bye.
 
W

Willy Denoyette [MVP]

batista said:
Hi,

I have an unmanaged dll that uses callback to call a function
of managed code.Now the problem is that it's given error

"System.DllNotFoundException"

I read it's due to appdomian.
http://weblogs.asp.net/mdavey/archive/2004/02/25/79868.aspx

Since i don't want to use COM-interop(efficiency issues)
I used callback using function pointers.

But now i'm having this problem.

So, plz tell me is there any other way of
trying to call managed code from unmanaged code.

Bye.

Tha means the your managed code does not find the unmanaged DLL, are you
sure it's in the same foler or in a folder included in the path
envrionment?.
Mind to post some code or at least the DllImport declarations.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top