C: Difference between revisions

From 太極
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
== Windows programming ==
== Windows programming ==


=== Difference between Win32 project and CLR project ===
=== Difference between Win32 project and CLR (common language runtime) project ===
See [http://stackoverflow.com/questions/3739392/what-is-the-difference-between-a-win32-project-clr-empty-project-and-empt here].
See [http://stackoverflow.com/questions/3739392/what-is-the-difference-between-a-win32-project-clr-empty-project-and-empt here].



Revision as of 13:45, 4 February 2013

Socket programming

http://www.thegeekstuff.com/2011/12/c-socket-programming/

Windows programming

Difference between Win32 project and CLR (common language runtime) project

See here.

A Win32 project is used if you want to end up with a DLL or a Win32 application usually using the bare WinAPI. A CLR project is used to create C++/CLI project, i.e. to use C++/CLI to target the .NET platform.

The main difference between projects is what Visual Studio comes up with in terms of pre-created files. A windowed Win32 application for example (what you get when you choose Win32 project, but not a DLL) is created with a file for resources (menus, acceleators, icons etc.) and some default code to create and register a window class and to instantiate this window.