Lost your password?

Blogs about: Vc 2005

Featured Blog

Visual Studio Study Note (1): Basic Usage of Visual C++ 2005

Sean wrote 7 months ago: Overview of VC++ 2005 This series of notes are about usage of VC++ 2005, not about general C++ progr … more →

Tags: Programming, Software, C#

How To Round Off A Number7 comments

cppkid wrote 9 months ago: Sometimes, it is needed to round off a number to some decimal digits.  Again stringstream comes to h … more →

Tags: C#, how to round a float, remove decimals from a number, Round a number, round decimal places, round off float, round off number

How To Set Extra Data With Each Row Of A List Box

cppkid wrote 10 months ago: We can associate a 32 bit value with each row of a list box. The member function SetItemData() of CL … more →

Tags: C#, adding extra data to CListBox, get data from list box, GetItemData, list box, set data to list box, Set extra data with each row of list box, SetItemData, Store information in CListBox row

Issue When Using [] Operator To Access Elements Of A map10 comments

cppkid wrote 10 months ago: I had the habit of using [] operator to access elements of a map. For example, if we have map<int … more →

Tags: C#, access element of a map, get element of a map, map in C++, map issue, problem with map, stl map, For MAP

How To Watch A Variable Even After Its Scope Is Over

cppkid wrote 10 months ago: Noramally, the value of a variable declared in a function can be seen in the watch window only when … more →

Tags: C#, how to watch a variable, Watch a variable, watch a variable after its scope is over, watch a variable througout the program, watch window

How To Handle new Operator Failure8 comments

cppkid wrote 10 months ago: new operator is used to allocate memory in C++. Though it is rare that a modern day computer is not … more →

Tags: C#, bad_alloc, handle memory allocation failure, new, new fails, operator new

How To Get The Screen Resolution In Pixels4 comments

cppkid wrote 11 months ago: The function GetWindowRect(), defined in WinUser.h, is able to give the current screen resolution. T … more →

Tags: C#, current screen resolution, get desktop resolution, Get screen resolution, resolution, resolution in pixel, VC

How To Call A Managed Dll From Unmanaged Code6 comments

cppkid wrote 11 months ago: I here illustrate how a dll written in C# is called in C++ (without CLR). Make a DLL in C# Let … more →

Tags: C#, call c# from C++, call CLR compiled code in C++, call managed code from unmanaged code, Call Managed DLL from unmanaged code, managed in unmananged

How to Increment/Decrement A Variable In A Thread Safe Manner3 comments

cppkid wrote 11 months ago: Sometimes it will be necessary to increment or decrement a variable in a atomic manner so that no ot … more →

Tags: C#, Thread, thread-safe, Thread safe decrement, thread safe increment

How To Get The Time Elapsed Since The System Was Started

cppkid wrote 11 months ago: The function GetTickCount() (defined in WinBase.h) returns the no. of milliseconds elapsed since the … more →

Tags: C#, Get time!, get time since computer was started, GetTickCount()

How To Get the Processor Speed

cppkid wrote 11 months ago: The processor speed in MHz can be read directly from the registry location HARDWARE\DESCRIPTION\Syst … more →

Tags: C#, cpu speed, Processor Speed, registry c++, speed of processor

How To Get The Current CPU Cycle Count1 comment

cppkid wrote 11 months ago: With a little bit of help from assembler, we can find the exact CPU cycle count. This can be very mu … more →

Tags: C#, get cpu cycles, how to find execution time, c. Performance, Performance of function

Shortcut keys in Visual studio 2005

cppkid wrote 1 year ago: The folowing is a description of some of the shortcut keys in Visual Studio 2005 (generously contrib … more →

Tags: C#, Short cut keys, shortcut keys in visual studio 2005, debugging in visual studio, debug windows in visual studio

How To Get All CD Drives1 comment

cppkid wrote 1 year ago: In the last post, I described how to open/close cd tray. Some of you might have raised your eye brow … more →

Tags: C#, VC, Get all cd drives, how to get drives, GetDriveType, Drive types

How To Open/Close CD Tray1 comment

cppkid wrote 1 year ago: Using VC++, it is quite simple. We can treat cd drive as an IO file using the windows API CreateFile … more →

Tags: C#, How to open cd drive, open close cd tray, open cd in C++, eject cd C++, retract cd C++

How To Fix Intellisense Problems With Visual Studio1 comment

cppkid wrote 1 year ago: Sometimes the intellisense stops itself in visual studio. Don’t panic. Go to your project dire … more →

Tags: C#, Intellisense Problem, NCB, ncb file, Ctrl+Space not working

What is const_iterator

cppkid wrote 1 year ago: A const_iterator is not a const iterator. That is, const vector<int>::iterator it; and vector … more →

Tags: C#, GCC, C++ / STL, Const, const_iterator, iterator, Vector

How To Watch Pointer As An Array

cppkid wrote 1 year ago: At times, I had been annoyed that the watch window was not showing the whole contents of a pointer a … more →

Tags: C#, watch pointer, debug pointer, contents of pointer, pointer as array

Constant Pointer And Pointer To A Constant1 comment

cppkid wrote 1 year ago: The keyword const specifies that you can not change the value of the variable. When it comes to poin … more →

Tags: C#, C++ pointer, pointer to a constant, constant pointer, Const, const pointer, pointer to a const


Have your say. Start a blog.

See our free features →

Related Tags
All →

Follow this tag via RSS