VB.Net中的Windows API函数声明 [英] Windows api functions declaration in VB.Net

查看:85
本文介绍了VB.Net中的Windows API函数声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


请,

我正在使用用户控件,并对私有声明"或公共声明"与私有/公共DLLImports Shared ..."之间的区别感到困惑.

谁能启发我?
在此先感谢

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

推荐答案

私人之间的区别就是您不希望类外的代码可以访问该函数.

在Declare和DllImport之间没有功能上的区别.他们俩都在做相同的事情,只是语法方式略有不同.
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.


这篇关于VB.Net中的Windows API函数声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆