準備:在 opensuse11 下搭建了 mono2 環境 ,更新系統,把能打的補丁全打上,這樣可以啟用 debugger 。
1. windows 上的 system.data.sqlite 不能正常載入。去除,新增 mono.data.sqlite .
2. mono 沒有完全實現 system.data.dll 中的所有類。新建兩個類:
code
created with monodevelop
//user: xh at 下8:02 08-12-29
////
to change standard headers go to edit->preferences->coding->standard headers
//using
system;
using
system.data;
using
system.data.common;
using
system.data.oledb;
using
system.security;
using
system.security.permissions;
namespace
nbear.data.mono
public
override
dbcommand createcommand()
public
override
dbcommandbuilder createcommandbuilder()
public
override
dbconnection createconnection()
public
override
dbconnectionstringbuilder createconnectionstringbuilder()
public
override
dbdataadapter createdataadapter()
public
override
dbparameter createparameter()
public
override
codeaccesspermission createpermission(permissionstate state)}}
code
created with monodevelop
//user: xh at 下8:02 08-12-29
////
to change standard headers go to edit->preferences->coding->standard headers
//using
system;
using
system.data;
using
system.data.common;
using
system.data.oledb;
using
system.security;
using
system.security.permissions;
using
system.data.oracleclient;
namespace
nbear.data.mono
public
override
dbcommand createcommand()
public
override
dbcommandbuilder createcommandbuilder()
public
override
dbconnection createconnection()
public
override
dbconnectionstringbuilder createconnectionstringbuilder()
public
override
dbdataadapter createdataadapter()
public
override
dbparameter createparameter()
public
override
codeaccesspermission createpermission(permissionstate state)}}
code
gateway g
=dbconfig.theone;
dict d
=g.find
<
dict
>
(dict._.id ==3
) ;console.writeline( d.value ) ;
openwrt libubox 移植到ARM上
由於專案的需要,需要把openwrt 上的libubox庫移植到arm上,libubox是openwrt的基礎庫,是乙個事件驅動庫,具體的可以到openwrt官網上去了解。宿主機為 ubuntu 10.04 交叉編譯工具鏈版本為 arm linux gcc 4.5.1,目標機為 s3c6410 s5...
mini2440 linux 3 7移植記錄(二)
3.把yaffs2 補丁打上 alex arch embedded linux 3.7 cd alex arch embedded la total68392 drwxr xr x24 alex root 4096 jan 3 14 14 linux 3.7 rw r r 1 alex root 6...
移植程式到symbian平台
symbian平台理論上可以平移標準的c c 語 言程式,以及標準庫。只需要在mmp檔案中進行如下編寫 target hello.exe targettype exe uid 0 sourcepath source slhello.c systeminclude epoc32 include lib...