Search found 14 matches

by rrcn
Thu Mar 12, 2009 4:29 pm
Forum: C++ Development
Topic: How to put a file inside a zip file
Replies: 7
Views: 1798

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...
by rrcn
Thu Mar 12, 2009 1:05 pm
Forum: C++ Development
Topic: How to put a file inside a zip file
Replies: 7
Views: 1798

JimFairway wrote:Hi,

Check the reference code here: http://docs.wxwidgets.org/stable/wx_wxa ... xarccreate

Hope that helps,

Jim
But if the file I want to put inside the zip archive isn't a text file does it works?
by rrcn
Wed Mar 11, 2009 4:49 pm
Forum: C++ Development
Topic: How to put a file inside a zip file
Replies: 7
Views: 1798

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!
by rrcn
Fri Feb 13, 2009 5:17 pm
Forum: C++ Development
Topic: Load from file in unicode
Replies: 7
Views: 1124

Thanks

Thanks for your great explanation!
by rrcn
Thu Feb 12, 2009 3:24 pm
Forum: C++ Development
Topic: Load from file in unicode
Replies: 7
Views: 1124

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 ...
by rrcn
Wed Feb 11, 2009 6:46 pm
Forum: C++ Development
Topic: Load from file in unicode
Replies: 7
Views: 1124

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...
by rrcn
Mon Jan 26, 2009 4:44 pm
Forum: C++ Development
Topic: Advice on how to show information
Replies: 1
Views: 392

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...
by rrcn
Tue Jan 06, 2009 4:09 pm
Forum: C++ Development
Topic: Problem on sorting items on listviewctrl
Replies: 1
Views: 488

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...
by rrcn
Mon Jan 05, 2009 5:35 pm
Forum: C++ Development
Topic: Problem on sorting items on listviewctrl
Replies: 1
Views: 488

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...
by rrcn
Mon Dec 08, 2008 6:48 pm
Forum: C++ Development
Topic: Where to save data files and configuration files
Replies: 1
Views: 422

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?
by rrcn
Mon Dec 01, 2008 12:45 pm
Forum: C++ Development
Topic: Add to the interface after shown
Replies: 4
Views: 687

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...
by rrcn
Sun Nov 30, 2008 1:54 pm
Forum: C++ Development
Topic: Add to the interface after shown
Replies: 4
Views: 687

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...
by rrcn
Fri Nov 28, 2008 5:44 pm
Forum: Platform Related Issues
Topic: wxWidgets on vista
Replies: 4
Views: 1012

The problem was with the preprocessor definitions.
It's ok now.
I've copied the ones from the minimalist example.
Sorry for only replying to the answers now!
by rrcn
Mon Nov 17, 2008 5:06 pm
Forum: Platform Related Issues
Topic: wxWidgets on vista
Replies: 4
Views: 1012

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?