Search found 1195 matches

by mc2r
Fri Mar 20, 2009 7:43 pm
Forum: C++ Development
Topic: Major wxFileConfig bug
Replies: 13
Views: 2078

rodrigod wrote:Can I still change the name of the topic so it won't cause any more problems?
I think one of the moderators would have to do that.

I don't think it really caused any problems. I just think it is more likely some usage error than a bug.

-Max
by mc2r
Fri Mar 20, 2009 7:41 pm
Forum: C++ Development
Topic: Major wxFileConfig bug
Replies: 13
Views: 2078

I don't think your post was helpful at all Max. It's just another way of saying RTFM. :wink: Well, I happen to think that RTFM can be very helpful ;) But, I did mention that if he posted the code he'd get likely some help. I know I'd look at it. I'm just no good at speculating what might be wrong o...
by mc2r
Fri Mar 20, 2009 7:26 pm
Forum: C++ Development
Topic: Major wxFileConfig bug
Replies: 13
Views: 2078

Re: Major wxFileConfig bug

edit: It is a little more random than I thought, because the path "canal0/caption" it managed to retrive the data. I am doing more tests and will post here any conclusions It is generally a good idea to do this part before calling "bug" in a crowded forum ;) No offence, but chances are more likely ...
by mc2r
Fri Mar 20, 2009 7:19 pm
Forum: C++ Development
Topic: Creating a wxStaticBitmap within a class constructor
Replies: 3
Views: 689

A class constructor is a function inside the class with the same name as the class. True but, it needs to be either inside the class definition(which you didn't show) or have the class name and :: prepended. People can only comment on what code is posted. class saviLED{ public: int GetState(); void...
by mc2r
Fri Mar 20, 2009 5:16 pm
Forum: C++ Development
Topic: Creating a wxStaticBitmap within a class constructor
Replies: 3
Views: 689

Re: Creating a wxStaticBitmap within a class constructor

Hello, If you could, please use the code tags when posting code. It makes it much easier to read. saviLED(int x_pos, int y_pos){ state = 0; xcord = x_pos; ycord = y_pos; //parent = new wxPanel; bmp.LoadFile(wxT("..\\..\\res\\redLED.bmp"), wxBITMAP_TYPE_BMP); my_bitmap = new wxStaticBitmap(panel, wxI...
by mc2r
Thu Mar 19, 2009 11:09 pm
Forum: C++ Development
Topic: `wxSQLite3ResultSet' to `int' in assignment
Replies: 1
Views: 513

Re: `wxSQLite3ResultSet' to `int' in assignment

wxSQLite3ResultSet has functions like GetInt, GetString that return the appropriate type. They take the index of the column they should return the value for. http://wxcode.sourceforge.net/docs/wxsqlite3/classwx_s_q_lite3_result_set.html wxSQLite3ResultSet* kdrmax = new wxSQLite3ResultSet(); *(kdrmax...
by mc2r
Thu Mar 19, 2009 6:10 pm
Forum: C++ Development
Topic: how to use wxdir class?
Replies: 4
Views: 953

hmmm, that example seems to work for me, but still, i'm not exactly sure what should i put in a place of 'filespec'. i only found, that there can be wxEmptyString, but it doesn't work in the way i'd like (for instance, i'd like to get files subdirectories as well). Looking through the function list...
by mc2r
Thu Mar 19, 2009 4:17 pm
Forum: C++ Development
Topic: Project Browser
Replies: 11
Views: 1672

With the code I gave in the example, how would I extend that so I could get the name of the added item for instance; I did tc->AppendItem(rootNode, filename), now if I wanted to add files and folders to that newly added item, how would I reference it? wxTreeCtrl::AppendItem wxTreeItemId AppendItem(...
by mc2r
Thu Mar 19, 2009 2:59 pm
Forum: C++ Development
Topic: Project Browser
Replies: 11
Views: 1672

bool cont = dir.GetFirst(&filename, wxEmptyString, wxDIR_DIRS); while ( cont ) { tcDir->AppendItem(rootNode, filename); cont = dir.GetNext(&filename); } I've tried to implement this and it works so far, but it only adds the top level folders to the Tree, but it's a start. Is there a way to extend t...
by mc2r
Thu Mar 19, 2009 5:20 am
Forum: Compiler / Linking / IDE Related
Topic: undefined reference problem in CodeBlocks
Replies: 3
Views: 938

Re: undefined reference problem in CodeBlocks

I added the include and lib directory to the build options for the project. I tried to add the "libwxcode_msw28u_wxsqlite3.a" file to the Linker Settings, but that resulted in tons of error messages. Not sure what compiler codeblocks uses on windows, but you could try adding -lwxcode_msw28_wxsqlite...
by mc2r
Thu Mar 19, 2009 5:15 am
Forum: wxCode
Topic: Get Database Layer to Work
Replies: 8
Views: 2837

Re: Fixed

You are correct - I was expecting the files to appear in /usr/lib; but they are where you said they would be. Generally you need to do a make install or sudo make install to get the files to appear in /usr/lib, the other targets like GNUmakefile and mysql will only build those components not instal...
by mc2r
Thu Mar 19, 2009 5:09 am
Forum: C++ Development
Topic: how to use wxdir class?
Replies: 4
Views: 953

The example here doesn't require a wxDirTraverser. Use the functions here to extend it. Check to see if the filename is in your list of "system" directories that should be excluded. If so exclude it. Otherwise check to see if it is a file or a dir. If it is dir, recursivly call the function you are ...
by mc2r
Thu Mar 19, 2009 4:58 am
Forum: C++ Development
Topic: wxAUI Panel possible?
Replies: 4
Views: 940

Re: wxAUI Panel possible?

I know you solved this already, but just a note on your original code. wxPanel panel(this, wxID_ANY); m_mgr.AddPanel(panel, wxCENTER); This doesn't work because you are creating the panel on the stack not on the heap(with new). Generally with 2 exceptions I can think of, in wxWidgets you want to do ...