2009-11-30

Gobject - Inherit (Chinese)

svn checkout http://gobject-learing.googlecode.com/svn/trunk/ gobject-learing-read-only 

Of course, you can download the source by using above command.
I found there's some different between GLIB v2.0 and v2.2.
So I rewrote the example code. and separated the "STEPS" more detail.

I believe it will be helpfull for someone(?) who wanna study GObject in dummy.


* BTW. i give up Google Doc in this time. because it can't not upload odf file. and i don't want to twit the slide every time :( .

2009-11-25

OpenEmbedded Build Process

I Just draw a diagram to explain the OpenEmbedded build process for internal project. If it's useful for someone else, just take it.





2009-11-23

OOP in C - Before GObject

svn checkout http://gobject-learing.googlecode.com/svn/trunk/ gobject-learing-read-only 


為達到最佳效果,請使用以上指令下載範例碼並與以下投影片一起服用。

we need to try write something before GObject programming. It let us understand more for "WHY USING GOBJECT". I write some example file, you can try to rewrite them after you read the slide and sample code.

Enjoy It.





2009-11-22

OOP in C - Virtual Function

svn checkout http://gobject-learing.googlecode.com/svn/trunk/ gobject-learing-read-only 


為達到最佳效果,請使用以上指令下載範例碼並與以下投影片一起服用。

OO的Member Function 其實是可以使用Function Pointer及Structure來描述 (廢話)

struct A 
{
int a;
FP  method_a;
};


再加上一點技巧, 就可以完成Virtual Function的實作 :)
Enjoy It.





2009-11-21

OOP in C - Inherit


svn checkout http://gobject-learing.googlecode.com/svn/trunk/ gobject-learing-read-only


為達到最佳效果,請使用以上指令下載範例碼並與以下投影片一起服用。

其實說穿了,整個概念就是以下的程式碼。


/* 1-4.h */

struct A{

int a;

int b;

};

struct B{

struct A parent;

int c;

};






2009-11-20

another half

well, let's start to sort out what i done before.
GObject learning for first. After that i plan to post out the real-mode programming tutorial.