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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:29:51+00:00 2026-06-17T23:29:51+00:00

I have been trying to write a small application using wxwidgets(C++) that copies all

  • 0

I have been trying to write a small application using wxwidgets(C++) that copies all the contents of the temp directory of an application and zip all the contents of the directory. I however am not able to copy the contents of the temp area completely.
Here is my code

 wxString result;
 result = wxFileName::GetTempDir(); //Gets the temp area.

 wxFileName dir(result, wxEmptyString);
 dir.AppendDir(_T("Application"));
 bool a = dir.DirExists();
 wxFFileOutputStream out(_T("test.zip"));
 wxZipOutputStream zip(out);
 wxString sep(wxFileName::GetPathSeparator());

 zip.PutNextEntry(_T("entry1.txt"));
 wxString temp = dir.GetLongPath();
 zip.PutNextDirEntry(temp);

I am able to create test.zip and write entry1.txt and also the temp directory( without its contents). However, I dont seem to understand how to copy the subdirectories and the files in the directory.

Is there any other way to do 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-06-17T23:29:53+00:00Added an answer on June 17, 2026 at 11:29 pm

    Use wxDir to enumerate the files and subdirectories of the given directory. Use wxDirTraverser or wxDir::GetAllFiles() to do the same thing recursively.

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

Sidebar

Related Questions

Right now I have been trying to use Launchpad's API to write a small
I have been trying to write a bare-bones ping scanner using Perl for internal
I have been trying to write an image on a layer using Quartz but
I have been trying to write a regex that will remove whitespace following a
I have been trying to write a small app with its own option windows.
In trying to write more testable Java code, I have been using the Model-View-Presenter
i have been trying to write a program in python to read two text
I have been trying to write some code in Scala to read a file
I have been trying to write my own diff3 wrap script for SVN and
I have been trying to write a custom .screenrc file TEST as follows startup_message

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.