Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1727:VA can't resolve function <GetInstances()>
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

XChicken
Junior Member

China
11 Posts

Posted - Jun 20 2009 :  6:10:58 PM  Show Profile  Reply with Quote
1-?-?add references System.Management
2-?-?coding...
string strMac = string.Empty;
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
if ((bool)mo["IPEnabled"] == true)
{
strMac += mo["MacAddress"].ToString();
}
}
3-?-?as u can see..VA can't resolve the function GetInstances()

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Jun 22 2009 :  12:50:29 PM  Show Profile  Reply with Quote
If you re-load the IDE does VA now understand the function GetInstances() ?

Which language are you programming in?

This might be a known problem, which we have fixed internally, where new references are not detected until the solution has been reloaded when programming in C++ CLR:

case=28209

zen is the art of being at one with the two'ness
Go to Top of Page

XChicken
Junior Member

China
11 Posts

Posted - Jun 24 2009 :  5:05:40 PM  Show Profile  Reply with Quote
IDE:VS2008 Team edition
language: C#
I tried it again.VA won't resolve the function until I reopen the project.
So, VA may have the same problem as in C++ CLR.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Jun 25 2009 :  12:21:39 PM  Show Profile  Reply with Quote
The C++ CLR problem has been fixed internally, and the fix should show up in the next build. Hopefully it will fix this problem in C# as well.

zen is the art of being at one with the two'ness
Go to Top of Page

XChicken
Junior Member

China
11 Posts

Posted - Jun 25 2009 :  2:21:09 PM  Show Profile  Reply with Quote
: )
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Aug 22 2009 :  7:20:49 PM  Show Profile  Reply with Quote
case=28209 is fixed in build 1731

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000