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 892373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:02:39+00:00 2026-05-15T14:02:39+00:00

I have a subclass of wxHtmlListBox called TestClass, but I get the error: /usr/include/wx-2.8/wx/string.h:682:0

  • 0

I have a subclass of wxHtmlListBox called TestClass, but I get the error:

/usr/include/wx-2.8/wx/string.h:682:0 /usr/include/wx-2.8/wx/string.h:682: error: ‘wxString::wxString(int)’ is private
MainFrame.cpp:106:0 MainFrame.cpp:106: error: within this context

MainFrame.cpp line 106 is this:

TestClass *tc = new TestClass(this, wxID_ANY, wxDefaultPosition, 
                              wxDefaultSize, NULL, wxBORDER_DEFAULT);

The files for TestClass can be found at http://cl.ly/1VSo

Any thoughts on this?

  • 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-15T14:02:39+00:00Added an answer on May 15, 2026 at 2:02 pm

    You’re passing wxBORDER_DEFAULT into a const wxString reference:

    TestClass(
        wxWindow* parent, // this
        wxWindowID id = wxID_ANY, // wxID_ANY
        const wxPoint& pos = wxDefaultPosition, // wxDefaultPosition
        const wxSize& size = wxDefaultSize, // wxDefaultSize
        long style = 0, // NULL
        const wxString& name = wxHtmlListBoxNameStr ); // wxBORDER_DEFAULT
    

    …but wxBORDER_DEFAULT is part of an enum (essentially an integer):

    enum wxBorder
    {
        /*  this is different from wxBORDER_NONE as by default the controls do have */
        /*  border */
        wxBORDER_DEFAULT = 0,
    
        wxBORDER_NONE   = 0x00200000,
        wxBORDER_STATIC = 0x01000000,
        wxBORDER_SIMPLE = 0x02000000,
        wxBORDER_RAISED = 0x04000000,
        wxBORDER_SUNKEN = 0x08000000,
        wxBORDER_DOUBLE = 0x10000000, /* deprecated */
        wxBORDER_THEME =  0x10000000,
    
        /*  a mask to extract border style from the combination of flags */
        wxBORDER_MASK   = 0x1f200000
    };
    

    So it’s using the constructor you mentioned for a wxString:

    wxString::wxString(int)
    

    …which is private and hence you’re getting an error. Try passing in a string or NULL instead 🙂

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

Sidebar

Related Questions

I have a subclass and I want it to not include a class attribute
I have a subclass of UIButton called INMenuCard and I am overriding the initWithFrame
I have a subclass of TTMessageController that shows ... BUT it is not animated
I have subclass of UIViewController called FullScreenViewController which has a property of type ImageScrollView
Im have a subclass of UIView, called PinView, which contains an image. Basically PinView
I have subclass of UIView, MyView. I also have a category on UIView called
I have a subclass of ListView. My only problem is I can't get it
I have a class called ToolbarView which is a subclass of UIView and basically
I have subclass of UINavigationBar . @interface MyNavigationBar : UINavigationBar Made some changes and
HI All. I have subclass of UIScrollView. IN this class I have added some

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.