Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Everybuddy

I would Like Import Interop.WIALib.dll to my Project , How Can i Do That ?

I Right-Click in ToolBox And Choose Add Item , but i cant Import it.
Posted
Updated 24-Feb-16 19:38pm
Comments
Sergey Alexandrovich Kryukov 13-Nov-11 23:25pm    
What tool box?!
--SA
Prerak Patel 13-Nov-11 23:28pm    
Actually it has nothing to do with toolbox. OP is just missing reference to WIA.
synctor 13-Nov-11 23:27pm    
i would like Import Interop.WIALib.dll !

You just need to add reference to Microsoft Windows Image Aquisition Library which should have been there in COM part.

Check this image[^]. [From WIA Scripting and .NET]
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 13-Nov-11 23:32pm    
My 5.
--SA
synctor 13-Nov-11 23:34pm    
Thank you
If this is a .NET Assembly, you reference it. Add a reference in Visual Studio Solution Explorer to your project, use the "Browse" tab. If this is a native DLL, you will need to use P/Invoke. See:
http://en.wikipedia.org/wiki/P/Invoke[^],
http://msdn.microsoft.com/en-us/library/Aa712982[^].

This CodeProject article is useful: Essential P/Invoke[^].

—SA
 
Share this answer
 
Comments
synctor 13-Nov-11 23:34pm    
Thank you
Sergey Alexandrovich Kryukov 14-Nov-11 0:11am    
My pleasure.
Good luck,
--SA
You can not do that using tool box. go to solution explorer -> references

then right click the references and click add reference. find the .dll file you want and add to the solution. then you can use it on your files.. lik.. using system.IO;
 
Share this answer
 
Comments
synctor 14-Nov-11 2:10am    
Thank you

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