Click here to Skip to main content

Articles by Pablo Aliskevicius (Articles: 7, Tip/Tricks: 2)

Articles: 7, Tip/Tricks: 2

RSS Feed

Average article rating: 4.79

C / C++ Language
Beginners
Posted: 3 Sep 2013   Updated: 10 Sep 2013   Views: 51,290   Rating: 4.96/5    Votes: 39   Popularity: 7.88
Licence: The Code Project Open License (CPOL)      Bookmarked: 51   Downloaded: 471
Memory reallocation generated by string concatenations can create performance bottlenecks. .NET has System.Text.StringBuilder, JavaScript has Array.join, and we have string::reserve.
Memory Management
Posted: 30 Jan 2012   Updated: 30 Jan 2012   Views: 13,658   Rating: 4.96/5    Votes: 16   Popularity: 5.96
Licence: The Code Project Open License (CPOL)      Bookmarked: 27   Downloaded: 175
Do you believe that memory corruption will generate an immediate, repeatable crash? Some programmers actually do...
Posted: 4 May 2012   Updated: 11 Nov 2012   Views: 32,147   Rating: 4.83/5    Votes: 49   Popularity: 8.15
Licence: The Code Project Open License (CPOL)      Bookmarked: 59   Downloaded: 327
Dangling pointers were a problem in the past, but nowadays we'll find none, right? Guess again...
WTL
General
Posted: 22 Feb 2004   Updated: 20 Apr 2004   Views: 38,525   Rating: 4.78/5    Votes: 13   Popularity: 5.32
Licence: The Code Project Open License (CPOL)      Bookmarked: 23   Downloaded: 1,700
A mix-in class to help drop files into WTL windows.
Posted: 3 Mar 2004   Updated: 20 Apr 2004   Views: 129,394   Rating: 4.41/5    Votes: 17   Popularity: 5.43
Licence: The GNU General Public License (GPLv3)      Bookmarked: 59   Downloaded: 4,462
Put a Progress Bar in a pane of your status bar with just three lines of code, or a bitmap, animation or anything with a HWND with just one.
Posted: 17 Jun 2004   Updated: 4 Aug 2004   Views: 94,784   Rating: 4.95/5    Votes: 52   Popularity: 8.49
Licence: The GNU General Public License (GPLv3)      Bookmarked: 65   Downloaded: 3,912
After you design your dialogs in Visual Studio, use the WTL Class Wizard to turn them into WTL classes and not just from Visual Studio 6!
Posted: 3 May 2004   Updated: 10 Sep 2013   Views: 75,939   Rating: 4.64/5    Votes: 18   Popularity: 5.80
Licence: The Code Project Open License (CPOL)      Bookmarked: 43   Downloaded: 2,192
A mix-in class to change the appearance of a dialog, by handling WM_CTLCOLOR* messages, with five lines of code.
No blogs have been submitted.

Average tips rating: 4.42

C / C++ Language
General
Posted: 24 Jan 2012   Updated: 24 Jan 2012   Views: 2,727   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
If the .lib files you're linking to represent some .dll files somewhere else, you can do the following:void main(){ FunB(); // from external_1.lib FunC(); // from external_2.lib // FunA(); // from external_1.lib / external_2.lib ???? typedef void (WINAPI *...
Programming Tips
General
Posted: 29 Jan 2012   Updated: 29 Jan 2012   Views: 5,120   Rating: 3.85/5    Votes: 5   Popularity: 1.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
You can make it a bit shorter: public virtual bool IsDebug { get { #if (DEBUG) return true; #else return false; #endif } }Thanks for sharing,
No reference articles have been posted.

Pablo Aliskevicius
Software Developer (Senior)
Israel Israel
Pablo writes code for a living, in C++, C#, and SQL.
 
To make all that work easier, he uses some C++ libraries: STL, ATL & WTL (to write Windows applications), and code generation.
 
Pablo was born in 1963, got married in 1998, and is the proud father of two wonderful girls.
 
Favorite quotes:
"Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, "The Devil's Dictionary", published in several newspapers between 1881 and 1906).
"You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).
Follow on   Google+   LinkedIn


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 26 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid