0

I have created a completely new new Windows Form application and are trying to add this namespace:

#include "stdafx.h"
#include <ctime>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream> 
#include <string>  
#include <vector>
#include <cmath>
#include <algorithm>
#include <limits>
#include <ios>
#include <cstdio>
#include <numeric>
#include <cstdlib>
#include <ctype.h> 
#include <stdio.h>

using namespace System::Management;

I get this compile error.
However I have used this namespace in another project that I have and that works fine there so I dont know what I am missing to be able to use that namespace as I have code that depends on this namespace ? Thank you..

'Management' : is not a member of 'System'

Edited by Lukezzz: n/a

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Lukezzz
0

I found out that I need to add reference to the Management namespace and that did solve the problem.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.