Guest hasnain_razwi Posted April 21, 2004 Posted April 21, 2004 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 Quote
*Experts* Bucky Posted April 21, 2004 *Experts* Posted April 21, 2004 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] Quote "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 April 22, 2004 Posted April 22, 2004 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? Quote
*Experts* Bucky Posted April 22, 2004 *Experts* Posted April 22, 2004 Here you go. Google really is a marvelous invention. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Recommended Posts