Calling Managed Code From Unmanaged Code, System.DllNotFoundException

  • Thread starter Thread starter batista
  • Start date Start date
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.
 
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.
 
Back
Top