[libxml++] Runtime Error



Hi,

I wrote a little test with libxml++ 2.6 and I have an error at runtime:
"The application failed to initialize properly (0xc0150002)"

I compile with VS2003. I added additional directories and dependencies but I can't add option /vd2 (referenced in gtk+) because it's not supported by VS2003.

My code is very easy:

#include "stdafx.h"
#include <libxml++/libxml++.h>

int _tmain(int argc, _TCHAR* argv[])
{
    xmlpp::Document d;

    xmlpp::Element* n;
       
    n = d.create_root_node("root","","");

    n->add_child("child1","");
    n->add_child("child2","");
    n->add_child("child3","");
    n->add_child("child4","");

    n->set_attribute("att1","val","");


    d.write_to_file("c:\\test.xml");

    return 0;
}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]