-
As I do keep tabs on what’s going on with C++ around the web, I chanced upon this short and succinct article about ‘free’ and ‘delete’ not returning memory to the OS from Thought Garage which starts with:
When you call free() or delete(), it will NOT really release any memory...
-
After a considerably long break during the holiday season of 2009, I got back into the development mood in the beginning of 2010. After implementing HTTPS support in the development version of cpp-netlib towards the end of the year, I then moved on to one of the seemingly harder parts of implementing...
-
One of the more basic and fundamental idioms of C++ programming is that of RAII. It’s so simple and fundamental that C++ seems to be the only programming language that supports this idiom. From Wikipedia, RAII is:
Resource Acquisition Is Initialization, often referred to by the acronym RAII (or...
-
Sometimes you want to be able to write applications in C++ and expose a way of easily extending it by offering a scripting interface embedded to your application. Why re-invent the wheel when you can embed existing programming languages like Python into your C++ application? This article covers how you...
-
UPDATE : It seems Community Server stripped the actual CHAR(160) in @someStringWithPad, just so that it will be contrived append CHAR(160) at the @someStringWithPad variable. ;) Ever experienced trying the following code to trim a seemingly "space" padded string? DECLARE @someStringWithPad...
-
A project our team (in my employer) has been working on for a good number of months now makes extensive use of Windows Communication Foundation (WCF). WCF is nothing really ground-breaking; its significance is that it unifies the various inter-process communication facilities into one common programming...
-
After using progressive browsers such as Firefox and Safari in my previous employers, imagine my dismay when I realised we were stuck with IE6. One of the things I missed as I had to step back and bear with old IE6 is the absence of the search bar. We're not allowed to upgrade to IE7 nor download...
-
I've gotten this question 3 times in different flavors since last week and I've decided that it's time to post the solution in my blog. I've added comments on the code to explain what every line is doing. The code below will demonstrate how you can read the assembly information in both...
-
we have a number of batch scripts at work which executes sql-related tasks for each of our project releases. last time, i incorporated errorlevel checks so we know if there was a problem with the execution and in order to abort the rest of the operations if something else has gone wrong. i was surprised...
-
i purchased my very first pocket pc last week and i have'nt really used it extensively. except for calendar and the gps software bundled which has been very useful travelling in this new country. i'm thinking of installing an rss reader so i can now catch up with my blog feeds during my two hour...
-
i've been told by one of my officemates that the windows xp search containing text does not work with all file types. of course mr. skeptical always verify it and was surprised that indeed it does not work for all file types, even with C# cs files! just sharing!
-
we have a document that keeps on repaginating eveytime i open it in winword. i found a post in usenet that you just have to save it as a webpage (html) then resave it as word document and it did solve the problem. just sharing!
-
for years i thought deltree (deletes a folder and all the files in it) was removed from the DOS days. before it was not included in the default command set but available as a separated executable. i just stumbled in one of our post build events which does the same with the remove directory command with...
-
I am currently working with conversion of ASP Classic web application to ASP.Net 2.0 and I have to deal with a lot of client-side script. Before, I used to insert an alert( sampleValue ) to be able to view the current value of a variable until I found out that about “debugger” keyword in JavaScript....
-
I find it hard when the currently active code sheet or item is not highlighted in solution explorer and there were times when i couldn't easily see where the option is so this is for my future reference. VS 2003: Tools->Options->Environment->Projects and Solution VS 2005: Tools->Options...