Исключение в двухстрочной программе Xerces

Следующий код дает мне исключение наXMLFormatTarget строка, но если я изменю строку с"C:/test.xml" в"test.xml" это работает отлично.

// test.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/framework/LocalFileFormatTarget.hpp>

using namespace xercesc;

int main()
{
    XMLPlatformUtils::Initialize();

    XMLFormatTarget *formatTarget = new LocalFileFormatTarget("C:/test.xml"); 

    return 0;
}

[править] Исключение Xerces:

Сообщение об ошибке: невозможно открыть файл «C: \ test.xml»

Исключение для Windows:

В доступе отказано

Ответы на вопрос(3)

Ваш ответ на вопрос