Thursday, January 21, 2010

What's the Difference between C sharp ( C# ) and C++?( Diffrence between C++ and C sharp)


Definition of C# by Microsoft:

C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (pronounced C sharp) is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high productivity of Visual Basic and the raw power of C++.

C++ is a general-purpose programming language with high-level and low-level capabilities. It is a statically typed, free-form, multi-paradigm, usually compiled language supporting procedural programming, data abstraction, object-oriented programming, and generic programming.

C# was developed by Microsoft, and programs written on C sharp uses .Net framework to run. While compiled C++ code can run as a standalone executable as byte-code.
 
C# is a C++ that includes some Visual Basic and Java features. It simplifies the creation of GUI (Graphical User Interface) programs and windows-based menus (items that require more effort and expertise to create with the standard C++ programming).

C++ is the standard version of the language. It is platform independent (C++ programs will execute on Windows, Unix, Linux, and any other operating system) while C# programs are designed to execute only on Microsoft Windows operating system, as Visual Basic is a Windows-only product.

If you want to do programming on linux or Unix systems then C++ is a better choice while if you want to do the programming on entirely windows based systems then C# is the better choice as it takes advantage of the existing Windows APIs (Application Program Interface) so that you don't need to create Windows libraries from scratch.

C# can create console applications, Windows applications, and ASP.NET websites.

Reference: C-Sharp Corner: Difference between C#(C Sharp) and C++

Tuesday, January 19, 2010

If new command missing in Context menu

When you click the File menu in Windows Explorer or When you right-click the desktop, the New command may be missing from the context menu, or it may not be showing proper items then do following. But be careful that you don't end up changing key value incorrectly.

To resolve this issue, use Registry Editor to verify that the registry key listed below has the value listed, and if needed, edit the value to match the value listed.

Registry key:
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\New\ (Default)
Value for (Default):
{D969A300-E7FF-11d0-A93B-00A0C90F2719} 
If registry entry doesn't appear then add the registry entry and (Default) value.

How to get "open command prompt" in context menu or right click

There are two ways to get open command prompt or open shell for any particular folder. When you click on a particular folder then you may want to get "open command prompt"  option in context menu for getting command prompt at that location to avoid doing C:\>cd <folder>.

First Method: (XP/VISTA/Windows 7)
  1. Click Start, and then click Run.
  2. In the Open box, type regedit, and then click OK
  3. Goto the key under "\HKEY_CLASSES_ROOT\Folder" and right click on "shell" say "new->key" and name it as "Command_prompt" and give name for default key value as "Open Command Prompt ".


   4. Right click on Command_prompt and say "new->key" with name "command".
   5. Double click on name "default" for command sub key and give value as     C:\WINDOWS\system32\cmd.exe "%1"



Now you can see Open Command Prompt when you right click on any folder.


Another method for windows XP is
1. open My Computer -> Tools -> Folder Options
2. Goto "File Types" Tab
3. Select "Folder" Type
4. Click "Advanced"
5. New -> Action : "Open Command Prompt", application used  to perform Action: Browse : C:\WINDOWS\system32\cmd.exe




Press OK and you are done.

Monday, January 18, 2010

Tracking lost mobile

If u lose your mobile,

Got an interesting fact to share.. Nowadays each one of us carry Wi Fi
Mobile devices and always fear that it may be stolen.

Each mobile carries a unique IMEI i.e International Mobile Identity
No which can be used to track your mobile anywhere in the world.

This is how it works!!!!!!

1. Dial *#06# from your mobile.

2. Your mobile shows a unique 15 digit ( IMEI NO.)

3. Note down this no anywhere but except your mobile as this is the no which will help trace your mobile in case of a theft.

4. Once stolen you just have to mail this 15 digit IMEI no. to cop@vsnl.net

5. No need to go to police.

6. Your Mobile will be traced within next 24 hrs via a complex system of GPRS and internet.

7. You will find where your hand set is being operated even in case your no is being changed.

If u lost your mobile, send an e-mail to
cop@vsnl.net with the following info.
Your name:
Address:
Phone model:
Make:
Last used No.:
E-mail for communication:
Missed date:

IMEI No.: