Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Please,

I'm using an usercontrol and remaind confused about the difference between Private or Public Declare... and Private / Public DLLImports Shared....

Any one can enlighten me?
Thanks in advance
Posted

1 solution

The difference between Private just means you do not want code outside of your class to have access to the function.

There is no functional difference between Declare and DllImport. They both do the same thing, just in slightly different syntactic ways.
 
Share this answer
 
Comments
Espen Harlinn 16-Jan-11 6:54am    
5+ - That was a staight simple answer - usually the best way to answer a question :)
Manfred Rudolf Bihy 16-Jan-11 9:26am    
Clear and concise answer! 5+

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