Showing posts with label C Sharp(C#) programming. Show all posts
Showing posts with label C Sharp(C#) programming. Show all posts

Monday, February 15, 2010

Opening .hxt/.hxc type of help files available with platform SDK's from MSDN

These type of files which are made available under help folder and are in Microsoft Help 2.0 format can be opened with "dexplore.exe" viewer. This utility is available at "C:\Program Files\Common Files\Microsoft Shared\Help 9". You can open files by typing the following at a command prompt, or associating it with a
desktop shortcut:

<path>\dexplore.exe /helpcol ms-help://<namespace>

where <namespace> is the name under which the help file has been registered on your system. For example:

"C:\Program Files\Common Files\Microsoft Shared\Help\dexplore.exe"
/helpcol ms-help://MS.xxxxx.xx


You can use either Dave Liske's custom Help 2.0 viewer (http://www.mvps.org/htmlhelpcenter/mshelp2/h2view.html) or Rob Chandler's FAR utility (http://helpware.net/FAR/index.html). These both let you display a list of the registered namespaces and choose the one to initialise. FAR Utility will also work for windows vista while h2view will not work. These utilities are replacement for dexplore.exe and will be simple to use.

So by using correct name space and  creating shortcut you can read the help files.
Even if you want you can use Help 2.0 viewer for viewing your help files as per your namespace.
"File->Open Namespace" Then select namespace and initialise.


If you want to create a shortcut just do right mouse click and say create shortcut. Then give the path or above mentioned command ( ""C:\Program Files\Common Files\Microsoft Shared\Help 9\dexplore.exe" /helpcol ms-help://MS.MSDNQTR.v90.en" ) and give the name for shortcut and you are done.

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++