Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6139483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:59:43+00:00 2026-05-23T17:59:43+00:00

I am building a GUI for my final project. This project uses pugixml as

  • 0

I am building a GUI for my final project. This project uses pugixml as xml parser for reading some data. Everything works in console mode.

So I started a new windows form project and I added all the headers files I wrote. I desgined my GUI etc. When I try to compile everything compiles but this:

pugixml.cpp(5627): error C2440: ‘return’ : cannot convert from ‘System::String ^’ to ‘const pugi::char_t *’
No user-defined-conversion operator available, or
Cannot convert a managed type to an unmanaged type

Here is the code where the error comes from:

const char_t* convert_number_to_string_special(double value)
{
#if defined(_MSC_VER) || defined(BORLANDC)
if (_finite(value)) return (value == 0) ? PUGIXML_TEXT(“0”) : 0;
if (_isnan(value)) return PUGIXML_TEXT(“NaN”);
This line—-> return PUGIXML_TEXT(“-Infinity”) + (value > 0);

I tried to change the configuration of the project but I didn’t get anything straight.

Any clue? I’d appreciate very much!

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:59:44+00:00Added an answer on May 23, 2026 at 5:59 pm

    This is the compatibility bug; unfortunately, pugixml 1.0 was not fully tested with C++/CLI (as far as I’m aware, this is the only problem with C++/CLI, so after fixing this you can use pugixml safely).

    You can either get the most recent version from the repository (http://pugixml.googlecode.com/svn/trunk/)
    or manually apply the patch: replace the line

    return PUGIXML_TEXT("-Infinity") + (value > 0);

    with

    return value > 0 ? PUGIXML_TEXT("Infinity") : PUGIXML_TEXT("-Infinity");

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently begun working on a project regarding GUI building using some form of
I'm building a gui component that has a tree-based data model (e.g. folder structure
I need to do some quick-and-dirty Perl GUI building. I can't afford a Komodo
I am building an HTML Gui builder and this involves round-tripping HTML pages from
Building the same project (without any changes) produces binary different exe-files: some small regions
I am working on building a GUI around a console application. I would like
I'm building a fairly complicated GUI for a project I'm working on. Importantly, it
Im building an GUI that will help my team mates to execute some jars
building the GUI of my cappuccino project, adding an NSProgressIndicator into the GUI result
I am building a gui which lets me select a subset of a data.frame

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.