Jump to content
Xtreme .Net Talk

Recommended Posts

Guest hasnain_razwi
Posted

hi all. its been somtime since i visited this forum. the problem im having this time around is making calls to API functions for finding out free disk space, free memory space and the number of free processing cycles. I'm used to the old way of using API functions in VB 6. any hints on how to do the same thing in VB.NET :D

thanks

  • *Experts*
Posted

The Declare statement works similarly in VB.NET as in VB6, but there are some

important differences; any Longs from VB6 must be changed to Integers (they're 32-bit),

and structures are handled in a special way. There is also the [mshelp=ms-help://MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemruntimeinteropservicesdllimportattributeclasstopic.htm]DllImport attribute[/mshelp],

which accomplishes the same task as the Declare statement.

 

[mshelp=ms-help://MS.MSDNQTR.2003FEB.1033/vbcn7/html/vaconCallingWindowsAPIs.htm]Read me![/mshelp]

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Guest hasnain_razwi
Posted

thanks. i guess what i should have asked was this. in VB 6 there was an application called API viewer? i think. It let u open up a list of all the API's along with the appropriate data for calling them. you just copied the code from the editor window and pasted it into your code.

Is there something like this in VB.NET?

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...