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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:41:38+00:00 2026-06-15T00:41:38+00:00

Having a path in a wxString variable, how do you append a subdirectory? Are

  • 0

Having a path in a wxString variable, how do you append a subdirectory? Are there any specific functions for working with paths?

For those of you who know the Python language, there are nice functions like os.path.join("sub1", "sub2", "sub3"...) that joins the subX parts using the OS specific separator, and the os.path.split(path) that splits the path to the directory and the last name. The os.path.join() is nice even in situations when you are sure what separator can be used.

Thanks for your time and experience,

Petr

P.S. I am interested in the lastest wxWidgets version (2.9.4+).

  • 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-06-15T00:41:39+00:00Added an answer on June 15, 2026 at 12:41 am

    wxFilename does what you need.

    http://docs.wxwidgets.org/trunk/classwx_file_name.html

    so, for example

    wxFileName fname;
    fname.AppendDir("sub1");
    fname.AppendDir("sub2");
    fname.SetName("test");
    fname.SetExt("txt");
    

    will create on windows

    sub1\sub2\test.txt
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having a path (here Windows) like c:\MyPath\where\ the\part\of\it\does\not\exist . Is there any function in
I know all about the history of different OSes having different path formats, but
I am having a problem with updating the PATH variable. What I need to
In my windows machine , i can execute java without having PATH variable pointing
What is the advantage with not having a build path in eclipse? Why is
Having a method like this: @GET @Path(/name/{name}) @Produces(MediaType.TEXT_PLAIN) public String getProperty(@PathParam(name) String name) {
I'm having trouble setting the path to a DLL that is not in the
I'm having difficulties getting XslCompiledTransform.Load method to take a server path. I googled around
I'm having an issue with IIS, attempting to reach a virtual folder path. My
How could I, having a path defined by several points that are not in

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.