Friday, 10 January 2014

Class / Objects

What is class?

Using the blueprint analogy, a class is a blueprint, and an object is a building made from that blueprint

Driver

What is a driver?

What he do to the hardware?

Windows programming

Starting with win32
Advanced to MFC
COM
ActiveX
Programming device driver 

Naming files, Paths, and Namespace

File and directori names
- Naming conventions
- Short vs. long names

Paths
- Fully qualified vs. relative paths
- Maximum path length limitation

Namespace
- Win32 file namespace
- Win32 Device namespace
- NT namespace

http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx

In members that accept a path, the path can refer to a file or just a directory. The specified path can also refer to a relative path or a Universal Naming Convention (UNC) path for a server and share name. For example, all the following are acceptable paths:
  • "c:\\MyDir\\MyFile.txt" in C#, or "c:\MyDir\MyFile.txt" in Visual Basic.
  • "c:\\MyDir" in C#, or "c:\MyDir" in Visual Basic.
  • "MyDir\\MySubdir" in C#, or "MyDir\MySubDir" in Visual Basic.
  • "\\\\MyServer\\MyShare" in C#, or "\\MyServer\MyShare" in Visual Basic.

namespace

In general namespace is a container for a set of identifiers.

System namespace

System namespace contain:
- fundamental classes
- base classes

fundamental classes and base classes contain:
- value datatypes
- reference datatypes
- events
- event handlers
- interfaces
- attributes
- processing exceptions

System.collections
System.componentmodel
System.Composition
System.diagnostics
System.dynamic
System.globalization
System.IO
System.linq
System.net
System.Numerics
System.Reflection
System.Resources
System.Runtime
System.Security
System.Servicemodel
System.text
System.threading
System.Windows.Input
System.XML
Windows namespace
Language and Compiler
 

Thursday, 9 January 2014

Yakin

Yakin karena diyakinkan atau karena diri sendiri?

Apa yang membuat seseorang yakin?
Karena sering mendengarkan