Search found 14 matches
- Thu Mar 12, 2009 4:29 pm
- Forum: C++ Development
- Topic: How to put a file inside a zip file
- Replies: 7
- Views: 2433
Off course it works ! Zip compression can match every file formats ! Here is an example but try to search a bit in the wxWidgets documentation : wxFFileOutputStream loc_o_file( _S( par_o_file ) ); wxZipOutputStream loc_o_zip( loc_o_file ); wxDataOutputStream loc_o_data( loc_o_zip ); // Create a new...
- Thu Mar 12, 2009 1:05 pm
- Forum: C++ Development
- Topic: How to put a file inside a zip file
- Replies: 7
- Views: 2433
But if the file I want to put inside the zip archive isn't a text file does it works?JimFairway wrote:Hi,
Check the reference code here: http://docs.wxwidgets.org/stable/wx_wxa ... xarccreate
Hope that helps,
Jim
- Wed Mar 11, 2009 4:49 pm
- Forum: C++ Development
- Topic: How to put a file inside a zip file
- Replies: 7
- Views: 2433
How to put a file inside a zip file
I want to create a compressed zip file and put inside it a single existing file.
I saw the help documents and I don't understand how can I do it.
I would really appreciate your help!
I saw the help documents and I don't understand how can I do it.
I would really appreciate your help!
- Fri Feb 13, 2009 5:17 pm
- Forum: C++ Development
- Topic: Load from file in unicode
- Replies: 7
- Views: 1642
Thanks
Thanks for your great explanation!
- Thu Feb 12, 2009 3:24 pm
- Forum: C++ Development
- Topic: Load from file in unicode
- Replies: 7
- Views: 1642
You should refrain from writing to the buffer directly, because the characters in wxString will be stored differently depending on the Unicode build settings (ie: each character might be 1 or 2 bytes -- as opposed to your file which will always be 1 byte). But if in the file I have only 1 byte for ...
- Wed Feb 11, 2009 6:46 pm
- Forum: C++ Development
- Topic: Load from file in unicode
- Replies: 7
- Views: 1642
Load from file in unicode
I have a problem when I get text from a file. I get the right text when not in unicode but the wrong text in unicode. On unicode it saves right but what I get is not the text on the file. This is what i use to save and load from a file: Save: class Serializer { public: Serializer (wxString const & n...
- Mon Jan 26, 2009 4:44 pm
- Forum: C++ Development
- Topic: Advice on how to show information
- Replies: 1
- Views: 526
Advice on how to show information
Hi! I need advice on how to show information to the user. As an example, to show information about a book I'd like to show the type of information like "title" on blue and the information of the book like the title name as black bellow. I thought in using wxRichTextCtrl but this can be edited and it...
- Tue Jan 06, 2009 4:09 pm
- Forum: C++ Development
- Topic: Problem on sorting items on listviewctrl
- Replies: 1
- Views: 616
Please help
Arghh! I really need help here! My comparison function only receives the 0 value for the two items to be compared and I don't have a clue why! m_count have value 2 so I don't know why it doesn't compares with second item. Here is the code: ListViewResource.h #ifndef LISTVIEWRESOURCE_H #define LISTVI...
- Mon Jan 05, 2009 5:35 pm
- Forum: C++ Development
- Topic: Problem on sorting items on listviewctrl
- Replies: 1
- Views: 616
Problem on sorting items on listviewctrl
Hi! I'm having problem sorting a listview items. The function responding the event is this: void ListViewResource::OnResourceListColClick(wxListEvent& event) { _lastColClicked = event.GetColumn(); SortItems(MyCompareFunction, (long) this); } Not a problem with it. The problem is that the comparing f...
- Mon Dec 08, 2008 6:48 pm
- Forum: C++ Development
- Topic: Where to save data files and configuration files
- Replies: 1
- Views: 566
Where to save data files and configuration files
Is there a way to get the path of the current user documents directory so I can save his data and configuration files?
And that works on every OS?
And that works on every OS?
- Mon Dec 01, 2008 12:45 pm
- Forum: C++ Development
- Topic: Add to the interface after shown
- Replies: 4
- Views: 911
Only Fit helps a little
I tried everything you told but only Fit on the tab bar does something. The problem is that doesn't fill the all area. I'll post some code. First it sizes the toolbar and the panel where the tab bar will sit and shows it: ... resourcepanel = new wxPanel(this, wxID_ANY); vbox->Add(resourcepanel, 1, w...
- Sun Nov 30, 2008 1:54 pm
- Forum: C++ Development
- Topic: Add to the interface after shown
- Replies: 4
- Views: 911
Add to the interface after shown
My problem is the inverse of Notepad or Emacs. Instead of a available (scratch) work area when I call the application, I want that the user explicitly opens a new work area so it can be displayed. In my case, I have a menu bar, and a tool bar that I want to be displayed when I run the application. A...
- Fri Nov 28, 2008 5:44 pm
- Forum: Platform Related Issues
- Topic: wxWidgets on vista
- Replies: 4
- Views: 1237
- Mon Nov 17, 2008 5:06 pm
- Forum: Platform Related Issues
- Topic: wxWidgets on vista
- Replies: 4
- Views: 1237
wxWidgets on vista
I want to use wxWidgets on vista with visual express c++ 2008.
The install tutorial says the instructions are for windows xp.
I tried for myself on vista but a very simple c++ application gives me 2 link errors: unresolved external symbol.
Can I still use wxWidgets on vista?
The install tutorial says the instructions are for windows xp.
I tried for myself on vista but a very simple c++ application gives me 2 link errors: unresolved external symbol.
Can I still use wxWidgets on vista?