I have been working through this book using Visual Studio 2005 Profession Ed. and Visual Basic 2005 Express Ed. depending which computer I am on. I have an issue with the Debugging try-it-out in chapter 9 step 17. When entering the following:
'Demonstrates the use of the Using statement
'Allows acquisition, usage and disposal of the resource
lstData.Items.Add("Computer Class Properties:")
Using objMemory As New Computer
lstData.Items.Add("FreeMemory = " & objMemory.FreeMemory)
lstData.Items.Add("TotalMemory = " & objMemory.TotalMemory)
End Using
In
VB 2005 Express this works correctly, however, in
VB 2005 Pro it does not. I get an error "'TotalMemory' is not a member of 'Debugging.Computer'". Any reason as to why this will work in Express but not in VS? Hope this makes sense.
Thanks,
E