Ray's playground

 
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 56 下一页

2010年3月16日

The Anatomy of a COM Server(Chapter 2 of COM and .NET Interoperability) part1

摘要: InterfaceCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1//Interfaces.cpp:Definestheentrypointfortheconsoleapplication.23#include"stdafx.h"4#include&... 阅读全文

posted @ 2010-03-16 23:04 Ray Z 阅读(211) 评论(0) 推荐(0) 编辑

Generics(Thinking in Java)

摘要: Generic MethodsCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1publicclassGenericMethods{2public<T>voidf(Tx)3{4System.out.println(x.getClass().... 阅读全文

posted @ 2010-03-16 21:37 Ray Z 阅读(182) 评论(0) 推荐(0) 编辑

2010年3月15日

Memory Addressing(Understanding the Linux Kernel)

摘要: Linux prefers paging to segmentation for the following reasons:Memory management is simpler when all processes use the same segment register values that is, when they share the same set of linear addr... 阅读全文

posted @ 2010-03-15 12:52 Ray Z 阅读(191) 评论(0) 推荐(0) 编辑

2010年3月14日

Type Information(Thinking in Java)

摘要: ShapesCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1importjava.util.*;23abstractclassShape4{5voiddraw()6{7System.out.println(this+".draw()");8}9abs... 阅读全文

posted @ 2010-03-14 17:39 Ray Z 阅读(333) 评论(0) 推荐(0) 编辑

Understanding Platform Invocation Services(Chapter 1 of COM and .NET Interoperability) part3

摘要: C++Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#include"MyCustomCallbackDLL.h"23BOOLAPIENTRYDllMain(HANDLEhModule,4DWORDul_reason_for_call,5LPVOI... 阅读全文

posted @ 2010-03-14 13:37 Ray Z 阅读(232) 评论(0) 推荐(0) 编辑

2010年3月11日

Strings(Thinking in Java)

摘要: Since String objects are immutable, you can alias to a particular String as many times as you want. Because a String is read-only, there’s no possibility that one reference will change something... 阅读全文

posted @ 2010-03-11 21:23 Ray Z 阅读(138) 评论(0) 推荐(0) 编辑

2010年3月10日

Error Handling with Exceptions(Thinking in Java)

摘要: When you override a method, you can throw only the exceptions that have been specified in the base-class version of the method. This is a useful restriction, since it means that code that works with t... 阅读全文

posted @ 2010-03-10 21:07 Ray Z 阅读(234) 评论(0) 推荐(0) 编辑

2010年3月9日

Understanding Platform Invocation Services(Chapter 1 of COM and .NET Interoperability) part2

摘要: [代码]Implementation:[代码]Client Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#include<windows.h>2#include<iostream>3#include"MyCustomDLL... 阅读全文

posted @ 2010-03-09 22:30 Ray Z 阅读(275) 评论(0) 推荐(0) 编辑

2010年3月8日

Understanding Platform Invocation Services(Chapter 1 of COM and .NET Interoperability) part1

摘要: A traditional C-style DLL is not constructed using the building blocks of COM and does not have the same internal structure as a .NET binary. Rather, unmanaged DLLs contain some set of global function... 阅读全文

posted @ 2010-03-08 22:08 Ray Z 阅读(193) 评论(0) 推荐(0) 编辑

2010年1月30日

Introduction(Understanding the Linux Kernel)

摘要: As already mentioned, a CPU can run in either User Mode or Kernel Mode.  When a program is executed in User Mode, it cannot directly access the kernel data structures or the kernel programs. When an a... 阅读全文

posted @ 2010-01-30 23:19 Ray Z 阅读(233) 评论(0) 推荐(0) 编辑

上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 56 下一页

导航