By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,332 Members | 1,372 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,332 IT Pros & Developers. It's quick & easy.

C++ Wmi App to C# Wmi App - System.Mgmt Access

P: n/a
I have an existing C++ Wmi App developed with v6.0 that I
am now converting to C#.

To do so I need FCL Namespace System.Management but "Using
System.Management;" bombs out with a build error
saying "Management does not exist in namespace System".

I have all the latest SDKs, am using VS .Net Pro, and my
C++ Wmi App (built with v6.0) works just fine.

Anyone know what I am missing? Many thanks.
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jerry,

You will have to add a reference to System.Management.dll in your
project. The using statement is nothing more than declaring a shorthand for
the namespace, not a declaration of a reference to another assembly.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Jerry" <je**********@partech.com> wrote in message
news:0e****************************@phx.gbl...
I have an existing C++ Wmi App developed with v6.0 that I
am now converting to C#.

To do so I need FCL Namespace System.Management but "Using
System.Management;" bombs out with a build error
saying "Management does not exist in namespace System".

I have all the latest SDKs, am using VS .Net Pro, and my
C++ Wmi App (built with v6.0) works just fine.

Anyone know what I am missing? Many thanks.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.