none
Validar um Xml RRS feed

  • Pergunta

  • Pessoal,

    Pesquisando sobre um modelo para validar um XML achei este exemplo:

    http://www.codeproject.com/Articles/18365/A-Simple-XML-Validator-using-VOLE

    Fiz a configurações conforme o autor indicou mas quando vou compilar obtenho o seguinte erro:

    Error	1	error C2664: 'stlsoft::comstl_project::variant::variant(const VARIANT &)' : cannot convert parameter 1 from 'vole::com_argument_traits<T>::need_to_specialise_the_traits_for_your_argument_type' to 'const VARIANT &'	C:\vole-0.7.4\include\vole\util\variant.hpp	192

    E na saída do compilador:

    1>------ Build started: Project: Pipe, Configuration: Release Win32 ------
    1>Build started 07/01/2014 11:19:10.
    1>InitializeBuildStatus:
    1>  Touching "Release\Pipe.unsuccessfulbuild".
    1>ClCompile:
    1>  Executa.cpp
    1>C:\vole-0.7.4\include\vole/util/variant.hpp(192): error C2664: 'stlsoft::comstl_project::variant::variant(const VARIANT &)' : cannot convert parameter 1 from 'vole::com_argument_traits<T>::need_to_specialise_the_traits_for_your_argument_type' to 'const VARIANT &'
    1>          with
    1>          [
    1>              T=char *
    1>          ]
    1>          Reason: cannot convert from 'vole::com_argument_traits<T>::need_to_specialise_the_traits_for_your_argument_type' to 'const VARIANT'
    1>          with
    1>          [
    1>              T=char *
    1>          ]
    1>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
    1>          C:\vole-0.7.4\include\vole/internal/generated/methods.hpp(47) : see reference to function template instantiation 'vole::variant::variant<T0>(const T &)' being compiled
    1>          with
    1>          [
    1>              T0=char *,
    1>              T=char *
    1>          ]
    1>          Executa.cpp(87) : see reference to function template instantiation 'R vole::object::invoke_method<bool,char*>(LPCOLESTR,const T0 &)' being compiled
    1>          with
    1>          [
    1>              R=bool,
    1>              T0=char *
    1>          ]
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:02.81
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Não consegui entender qual o problema, alguém poderia me ajudar?

    terça-feira, 7 de janeiro de 2014 13:33