Search found 24 matches

by johncruise
Wed Feb 17, 2010 7:48 pm
Forum: General Development
Topic: C switch statment with nested if's
Replies: 6
Views: 3020

the main difference between that code taken from that wikipedia article and your original code is... the do{}while code is inside a case statement even though it encapsulates the rest of the case's. your code is not within any case (i.e. in between switch and any case statement). Have you checked wi...
by johncruise
Sat Feb 06, 2010 3:08 am
Forum: C++ Development
Topic: wxXmlDocument's HEAP allocation/deallocation problem
Replies: 1
Views: 716

sorry but....

*bump*

I know a lot of people are using wxXML.... I'm pretty sure somebody noticed this already :-)
by johncruise
Wed Jan 13, 2010 3:18 am
Forum: C++ Development
Topic: wxXmlDocument's HEAP allocation/deallocation problem
Replies: 1
Views: 716

wxXmlDocument's HEAP allocation/deallocation problem

IDE: VC++ 2008 Express WX: 2.8.10 and 2.8.9 I'm running into some problem where during debug, I would get a ... HEAP[someapp.exe]: Heap block at XXXXXXX modified at YYYYYYY past request size of NN ... message and then my program would do a debug-break. Responding with [Continue] or [Retry] would not...
by johncruise
Wed Jan 13, 2010 2:55 am
Forum: C++ Development
Topic: Why wxWidgets does not have a namespace ?
Replies: 12
Views: 4206

If that's the only case, a directive would be sufficient enough to fix it. #if defined( _USING_NAMESPACE_ ) namespace wx { #endif ... // in the end of the file #if defined( _USING_NAMESPACE_ ) }; // namespace wx #endif What I had in mind was even a class rename to conform with wxPython implementatio...
by johncruise
Tue Jan 12, 2010 4:59 pm
Forum: C++ Development
Topic: Why wxWidgets does not have a namespace ?
Replies: 12
Views: 4206

... but of course, I know that it's a big of a task. No pressure though :lol: :lol: :lol:
by johncruise
Tue Jan 12, 2010 4:58 pm
Forum: C++ Development
Topic: Why wxWidgets does not have a namespace ?
Replies: 12
Views: 4206

That could be nice good project for the wx team... put everything into namespace just like what they did in wxPython.
by johncruise
Fri Apr 10, 2009 9:22 pm
Forum: General Development
Topic: C switch statment with nested if's
Replies: 6
Views: 3020

I am trying to compile this with gcc (which I believe conforms to the C and C++ standards) and both file (sample.c and sample.cc) complains that the 'if' is unreachable. I think that error makes sense since (I believe) that nothing inside the switch block will get executed unless a case value has me...
by johncruise
Sat Mar 28, 2009 5:03 pm
Forum: General Development
Topic: And yes... another wxDb's "future build will drop"
Replies: 8
Views: 13559

Pretty cool. Thanks Auria!
by johncruise
Sat Mar 28, 2009 5:07 am
Forum: General Development
Topic: And yes... another wxDb's "future build will drop"
Replies: 8
Views: 13559

Man... this looks very very promising! If I can take back the answer credits, I'd be more than happy to give it to your last post. Thanks again. I'll be reading more into this.
by johncruise
Fri Mar 27, 2009 11:04 pm
Forum: General Development
Topic: And yes... another wxDb's "future build will drop"
Replies: 8
Views: 13559

Are you kidding? :) One thing wxWidgets should do best is to be a cross platform widget library. Let the authors concentrate on the important bits, rather than try to do what other libraries does better already. It is not rocket science to find a library and link it in. Not a lot different than lin...
by johncruise
Wed Mar 25, 2009 12:32 am
Forum: General Development
Topic: And yes... another wxDb's "future build will drop"
Replies: 8
Views: 13559

Thanks for the reply jacmoe. It's a good thing that database support is being dropped. WxWidgets should concentrate on Widgets. :) True... it is not part of the widget but that doesn't stop other non-widgets class to be included in the project (wxArray, wxString, wxFile*, wxSock*, wxXml*, wxThread*,...
by johncruise
Tue Mar 24, 2009 10:05 pm
Forum: General Development
Topic: And yes... another wxDb's "future build will drop"
Replies: 8
Views: 13559

And yes... another wxDb's "future build will drop"

I keep seeing all over the place that wxDb and related classes (wxODBC,etc) will be dropped in future build. Just to avoid further confusion, I'd like to ask the following: will all database related class be dropped? If not all, what will remain for us? if all of them will be dropped, what database ...
by johncruise
Tue Mar 24, 2009 1:54 am
Forum: Open Discussion
Topic: wxWindows drop says MS... how about "Windows Mobile Wid
Replies: 2
Views: 2019

wxWindows drop says MS... how about "Windows Mobile Wid

It's just funny how I remember seeing that note long ago that says Microsoft once requested the developer(s) (Julian Smart) to change wxWindows name due to trademark of the term "Windows". I don't know if partial term "Widgets" (no wx prefix) is licensed but it was funny how Micr...
by johncruise
Mon Mar 09, 2009 9:58 pm
Forum: C++ Development
Topic: wxSocketBase send limit of 52 bytes?
Replies: 0
Views: 620

wxSocketBase send limit of 52 bytes?

I've created a telnet client class based off of wxSocketClient. This code is exactly the code I created before based off of CAsyncSocket (MFC). I'm hitting a corner case where a certain telnet connections can send a maximum of 52 bytes in a single command. The original code based off of MFC doesn't ...
by johncruise
Fri Feb 20, 2009 4:29 am
Forum: C++ Development
Topic: wxRegEx question
Replies: 7
Views: 1643

Can you try ... wxString pattern = wxT("(^|[[:space:]]+)([a-zA-Z]:\\\\|\\\\\\\\)[[:print:]]+\\\\?"); ... instead? I just double the slash characters to escape them in C/C++. RegEx needs to escaped them also so the slash count should be twice. Sorry, I'm too lazy to verify by creating anoth...