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

Hi

I've been programming for a while but I'm fairly new to C++. I want to use the PrintSystemJobInfo Class for some print monitoring but I can't figure out how to correctly use the System.Printing namespace. I'm trying it like this and getting two error messages:

using namespace System::Printing;

error C2039: 'Printing' : is not a member of 'System'
error C2871: 'Printing' : a namespace with this name does not exist

I'd really appreciate some help with this.
That looks like .NET to me. Are you sure you are trying to compile as a .NET program, have included everything relevant, etc.?
That's pretty much all the class contains as I can't go any further without this namespace.

I want to use it in conjunction with Java so I've created the project as a new class library. It only contains this code:

#pragma once

using namespace System;
using namespace System::Printing;

namespace Test {

public ref class Class1
{
// TODO
};
}
The PrintSystemJobInfo Class is a .NET class. If you want to use it, you'll have to code in the .NET framework.
Topic archived. No new replies allowed.