Click here to Skip to main content
16,009,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to embed an unmanaged dll and call its function later on.

I know how to do it for a managed dll and it works perfectly.

I am using visual studio, please advice.

Regards
Rayfoe
Posted

1 solution

 
Share this answer
 
Comments
rayfoe 15-Jun-11 18:04pm    
Thanx,

I have gone through the first link, should I understand it this way:

1- convert the unmanaged dll to managed by wrapping it
2- embed the newly created managed dll
3- call the "Embedded Resource" dll using the Assembly
TRK3 15-Jun-11 18:07pm    
Yeah. That's the basic idea.

If you are using the unmanaged dll lots of places, then wrapping it in a managed layer makes it simpler to access everywhere.
Sergey Alexandrovich Kryukov 15-Jun-11 18:33pm    
Very good, my 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900