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

  • Home
  • SEARCH
  • 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 6718569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:59:07+00:00 2026-05-26T08:59:07+00:00

I am trying to leverage the libconfig library in my c++ code to read

  • 0

I am trying to leverage the libconfig library in my c++ code to read in data. I have a bitmask binary value that I am trying to read in from an external file. The problem is when I read the data in, I believe libconfig is interpreting or parsing the integer as a base 10 number and not as a base 2 number and thus affecting the value. I looked in the libconfig FAQ and it points to hexadecimal representation as “0x” but nothing on binary (“0b” prefix doesn’t work).

Anyone know a work around, I have a lot of these bitmasks and its quite troublesome to convert all base 2 numbers to their base 10 counter parts.

Example in the libconfig file:

bitmask = 00000000001000000010010100001101;

  • 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-26T08:59:07+00:00Added an answer on May 26, 2026 at 8:59 am

    I’m not familiar with libconfig, but can you persuade it to read these bitmasks as strings? Then do the conversion in your own code.

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

Sidebar

Related Questions

I'm trying to leverage the using block more and more these days when I
I am trying to leverage ORM given the following requirements: 1) Using .NET Framework
I am trying create a WCF service that leverages the WPF MediaPlayer on the
Trying to find some simple SQL Server PIVOT examples. Most of the examples that
Trying to make a make generic select control that I can dynamically add elements
I'm trying to use usort() and leverage a global variable inside its function scope,
I am trying to change my comboboxes to use autocomplete so i leverage the
I'm trying to write an interceptor for a web service that will modify the
I have a large amount of Word documents that I need to parse. As
Trying to create an app that does some socket communication (Writing only). I can

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.