Search found 630 matches
- Tue Aug 24, 2010 7:15 pm
- Forum: C++ Development
- Topic: Is there an IP address input control?
- Replies: 3
- Views: 3596
Re: Is there an IP address input control?
[...]how can I validate that the user input valid IP address? For this kind of things, regex does it! // check of IP address // regular expression for IP address (4 [0-255] decimal numbers separated by periods) // [0-9]{1} : exactly 1 decimal digit ([0-9]) // |[0-9]{2} : ...or exactly 2 decimal dig...
- Sun Jun 27, 2010 10:10 pm
- Forum: C++ Development
- Topic: Application Process Is Still Alive...
- Replies: 2
- Views: 1760
- Thu Jun 17, 2010 3:40 pm
- Forum: C++ Development
- Topic: OK to use Delete and TestDestroy with a Joinable thread?
- Replies: 7
- Views: 2939
- Mon Jun 14, 2010 3:12 pm
- Forum: C++ Development
- Topic: Plugin oriented App
- Replies: 62
- Views: 26512
- Mon Jun 14, 2010 6:57 am
- Forum: C++ Development
- Topic: Plugin oriented App
- Replies: 62
- Views: 26512
- Mon Jun 14, 2010 6:39 am
- Forum: C++ Development
- Topic: Const-correctness help.
- Replies: 14
- Views: 20978
- Mon Jun 14, 2010 12:02 am
- Forum: C++ Development
- Topic: Const-correctness help.
- Replies: 14
- Views: 20978
Is that a general rule then to Ooly put const in the beginning of a function declaration if it returns a pointer? (Are there no performance gains the way I have it now, even if slightly?) Returning a pointer is a special case that has nothing to do with gaining performance. Doing that, memory leak ...
- Sun Jun 13, 2010 11:57 pm
- Forum: C++ Development
- Topic: Const-correctness help.
- Replies: 14
- Views: 20978
- Fri Jun 11, 2010 12:52 am
- Forum: C++ Development
- Topic: Polymorphism
- Replies: 12
- Views: 4921
Knowing than #include is nothing more than a copy/paste of code by the preprocessor, if you include A.h in B.h and vice-versa, then you get into an infinite loop: A.h is read, and tells to read B.h, B.h is read and tells to read A.h, A.h is read and tells to read B.h, etc. So .h have to be included ...
- Thu Jun 10, 2010 11:11 pm
- Forum: C++ Development
- Topic: Polymorphism
- Replies: 12
- Views: 4921
- Mon Jun 07, 2010 10:40 pm
- Forum: C++ Development
- Topic: Just one function can run in the thread
- Replies: 6
- Views: 1941
Hi. I know this is not about your question but i cant resist:
Instead of
why not write:
Instead of
Code: Select all
for (;;)
{
...
if ( TestDestroy() )
{
break;
}
}
Code: Select all
while ( !TestDestroy() )
{
...
}
- Fri May 28, 2010 9:56 am
- Forum: C++ Development
- Topic: Simple thread runs forever until it's killed
- Replies: 2
- Views: 1380
Re: Simple thread runs forever until it's killed
1) If you look at the Entry function for my BeeperThread, you'll see that the thread just runs in an eternal loop and it never checks TestDestroy. Is it OK to write a thread like this in wxWidgets? [...] 2) If you look at the code for when the user clicks "Turn Off Beeper", you'll see tha...
- Wed May 26, 2010 10:15 pm
- Forum: C++ Development
- Topic: Can't Add Widgets to wxDialog
- Replies: 4
- Views: 2406
For this kind of stuff, it's easier to always create objects on the heap! wxDialog object can be created on the heap as well as on the stack (but i do prefer on the heap). wxTextCtrl and such kind of graphic objects are generally created on the heap as the parent (the dialog) will take care of destr...
- Thu May 20, 2010 1:57 pm
- Forum: C++ Development
- Topic: wxToolBar in each panel of a wxNotebook glitches
- Replies: 5
- Views: 2705
- Thu May 20, 2010 1:15 pm
- Forum: C++ Development
- Topic: wxToolBar in each panel of a wxNotebook glitches
- Replies: 5
- Views: 2705