-
How to use API in vb.net?
Hello,
I found in vb.net,the former API Viewer had gone.So is there any idea
to insert a API function,or VB has a change in this situation?
Thanks
-
Re: How to use API in vb.net?
You use them as you normally would in VB 6.
Just make sure that Long is now Int32, etc.
"LiRui" <lirui163#xf.hb.cninfo.net> wrote in message
news:3d574789@10.1.10.29...
> Hello,
> I found in vb.net,the former API Viewer had gone.So is there any idea
> to insert a API function,or VB has a change in this situation?
> Thanks
>
>
-
Re: How to use API in vb.net?
The real answer here is NOT to use them. Under the CLR everything is "managed"
code. Calling APIs makes the code "unmanaged". This defeats many of the
benefits of running under the CLR. I think you will find many new namespaces
under .NET that will replace APIs quite nicely.
Keith
"LiRui" <lirui163#xf.hb.cninfo.net> wrote:
>Hello,
> I found in vb.net,the former API Viewer had gone.So is there any idea
>to insert a API function,or VB has a change in this situation?
> Thanks
>
>
-
Re: How to use API in vb.net?
It should be pointed out that the VAST MAJORITY of situations which called
for the use of an API have been absorbed into the functionality that is now
available with the .NET Framework. What exactly do you need to call an API
for?
Arthur Wood
"LiRui" <lirui163#xf.hb.cninfo.net> wrote:
>Hello,
> I found in vb.net,the former API Viewer had gone.So is there any idea
>to insert a API function,or VB has a change in this situation?
> Thanks
>
>
-
Re: How to use API in vb.net?
LiRui,
For the most part I agree there is no need to use the API (this is a good
thing). But you may encounter the need to use the API and to date there have
only been a coupla instances I did. For one, how did you guys that responded
get the Windows Service Pack number in VB.NET without using the API? Maybe
I missed something there, but the only way I found to do it was with the
API. I was able to get much of the other system info without using the API.
I am still learning (and there is alot to learn!).
Regards,
Terry
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks