Search found 10 matches

by alaricljs
Tue Jun 28, 2005 11:10 pm
Forum: C++ Development
Topic: G++ 3.4/Linux stringstream question...
Replies: 1
Views: 1013

G++ 3.4/Linux stringstream question...

This isn't directly related to wxWidgets, so please point to a better forum if you can, this is the only one I'm on in regards to C++. I've got a class that includes a ostringstream in it's public section: std::ostringstream OutStream; When I go to compile I get these errors: g++-3.4 -I./includes -c...
by alaricljs
Fri Jun 24, 2005 7:41 pm
Forum: C++ Development
Topic: C++ Newbie, I want a wxTextValidator subclass, how?
Replies: 2
Views: 759

Stupid stumbling block number 2: Horrid error messages from your compiler lead you to believe you're clueless, when all you did was typo/drop punctuation. That's right, a simple semi-colon at the end of the class {} is all I screwed up. Mind you Dev-C++ tells me I've got a new type definition as a r...
by alaricljs
Fri Jun 24, 2005 6:11 pm
Forum: C++ Development
Topic: C++ Newbie, I want a wxTextValidator subclass, how?
Replies: 2
Views: 759

C++ Newbie, I want a wxTextValidator subclass, how?

I would very much like to subclass wxTextValidator. Problem being I have no clue how. I have Stroustrup's book and Thinking in C++ by Bruce Eckel, they've not helped very much. All I want to do is make string length a part of the validation process, it can't be that hard. I'd like minimum and maximu...
by alaricljs
Thu Jun 23, 2005 3:35 pm
Forum: C++ Development
Topic: wxSocketClient is killing me!
Replies: 7
Views: 2016

Ok, my own editing stupidity but that's an awful weird error for what I did. I had a dtor defined in the class, and had no dtor function code. Yay.
by alaricljs
Thu Jun 23, 2005 3:20 pm
Forum: C++ Development
Topic: wxSocketClient is killing me!
Replies: 7
Views: 2016

Ok, it works wonderfully in my little demo project. I go back to the big project and implement the changes.... and I get a linker error! undefined reference to vtable ??

Any idea what this means? (If you haven't noticed I've never coded in C++ before ;) )
by alaricljs
Thu Jun 23, 2005 3:10 pm
Forum: C++ Development
Topic: wxSocketClient is killing me!
Replies: 7
Views: 2016

How very strange... I remember writing that line. And yet it's not there anymore... Hrm, probably some stupid Dev-cpp/wxGlade interaction where I didn't save my files before doing some UI changes in wxGlade... Thanks for noticing, and the suggestions. I tried having the main frame call the connectio...
by alaricljs
Thu Jun 23, 2005 2:30 pm
Forum: C++ Development
Topic: wxSocketClient is killing me!
Replies: 7
Views: 2016

Ok, the issue actually has nothing to do with the address. I've done the whole breakpoint/watch variable on my address section, it's picking up the address just fine. It also has nothing to do with the ->Connect call, technically speaking. The issue is that in the UI::DoConnect() function any refere...
by alaricljs
Wed Jun 22, 2005 5:37 pm
Forum: C++ Development
Topic: wxSocketClient is killing me!
Replies: 7
Views: 2016

wxSocketClient is killing me!

Ok, I'm trying to open a socket connection and it's segfaulting. I have no idea why, there's no real indicators in the backtrace, I'm at a total loss. I think I have everything implemented that's necessary. Below, wxString host is passed from a modal dialog with a wxTextCtrl as: if (UI->DoConnect(te...
by alaricljs
Fri Jun 17, 2005 3:22 pm
Forum: C++ Development
Topic: Help with wxTextCtrl
Replies: 2
Views: 728

Got it solved, I had been using sizers and still am, just a matter of not being afraid to use alot of sizers. I was previousy using a wxFlexGridSizer and for the address fields a horizontal wxBoxSizer with 7 fields (4 octets, 3 labels of "."). Now it's a virtical wxBoxSizer containing 2 wx...
by alaricljs
Thu Jun 16, 2005 8:07 pm
Forum: C++ Development
Topic: Help with wxTextCtrl
Replies: 2
Views: 728

Help with wxTextCtrl

I am trying to write a network address interface, and I cannot seem to get the wxTextCtrl widget to be smaller than ~100px wide. I am using wxGlade 0.3.5.1 to create the interface, however I'm not averse to modifiying it in dev-cpp. Here's the wrong way: http://www.mooluv.com/Leeman/netwrong.gif And...