Friday, April 27, 2007

Thursday, April 26, 2007

Unicode tutorial

The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) - Joel on Software

寫的不錯~~~

和網友打招呼 (moliuOLOGY)

和網友打招呼 (moliuOLOGY)

整理的不錯~~
原文如下

有時大家都會習慣,每天早午晚到相熟的Blogger 處打個招呼、串串門子。
不過說來說去都是「早晨」「午安」等,就算看的那位不悶,留了三兩次之後亦未必會繼續留言。在網上找來某些招呼語的各國語言版本,對各位應該有用。
時限性的
"Good morning" in more than 250 languages
Spanish - Buenos días
Portuguese - Bom dia
Italian - Buon giorno
French - Bonjour
German - Guten Morgen
"Good afternoon" in more than 160 languages
Spanish - Buenas tardes
Portuguese - Boa tarde
Italian - Buon pomeriggio
French - Bon après-midi
German - Guten Tag
"Good night" in more than 240 languages
Spanish - Buenas noches
Portuguese - Boa noite
Italian - Buona notte
French - Bonsoir
German - Gute Nacht

一般打招呼
Greetings in more than 800 languages
Spanish - Buenos días
Portuguese - Olá
Italian - Buon giorno
French - Bonjour
German - Guten Tag
"How are you?" in over 425 languages
Spanish - ¿Cómo está usted?
Portuguese - Como está?
Italian - Come sta?
French - Comment allez-vous?
German - Wie geht es Ihnen?

回應用."Welcome" in over 325 languages
Spanish - Bienvenido(M) / Bienvenida(F)
Portuguese - Bem-vindo
Italian - Benvenuto
French - Bienvenue
German - Willkommen
"Thank you" in over 465 languages
Spanish - Gracias
Portuguese - Obrigado(M) / Obrigada(F)
Italian - Grazie
French - Merci
German - Danke
再見時用."Goodbye" in over 450 languages
Spanish - Adiós
Portuguese - Até a vista
Italian - Arrivederci
French - Au revoir
German - Auf Wiedersehen

Wednesday, April 11, 2007

GOW 4/10 update review

這次的更新,除了原先就知道增加了Annex模式
其實他還改了滿多的Bug,當然最受大家喜愛的Weapon slide並沒有被改掉
大部分玩家還是喜歡用這招
再來更改了各項武器的威力
其中最值得一提的就是機槍
機槍的威力感覺強了快一倍
本來打兩三秒對方才會倒
現再打一秒多對方就倒了
還有Boom shot,以前Boom shot打到對方腳邊只會紅血
現在打到腳邊,對方就倒了
這威力雖然合理,但是也代表這武器強的不像話
綜合來說 各項武器都變強了
還有以前被插炸彈
被插的人讓差炸彈的人死的話 不算Kill
但現在如果你被插還讓對手死,可以算殺人數

這修改還滿不錯的

最讓大家不能接受的,應該是現在要逃跑很容易黏到牆壁
跑沒兩下就像吸鐵一樣被黏住~~

實在很煩

Friday, April 06, 2007

How to make a transparent check box?

Wrong Method 1:
in the case WM_CTLCOLORSTATIC:
Set the backbround mode to transparent to both checkbox and picture control can't work. SetBkMode(GetDC(hWnd), TRANSPARENT);

Wrong Method 2:
in the case WM_CTLCOLORSTATIC:
Select a null brush to the CheckBox can't work.
SelectObject ((HDC)wParam, GetStockObject (NULL_BRUSH));

Wrong Method 3:
in the case WM_CTLCOLORSTATIC:
Both ExtTextOut and DrawText to the Picture control's DC can't work

Wrong Method 4:
in the case WM_CTLCOLORSTATIC:
BitBlt(HDC(wParam),10,0,60,30,GetDC(hWnd),50,150,SRCCOPY);
SetBkMode (HDC(wParam), TRANSPARENT);
ExtTextOut(HDC(wParam),0,0,0,NULL,TEXT ("TIMXX"),5,NULL);

Wrong Method 5:
Override the Picture control's window proc and in the WM_PAINT:
SetBkMode ((HDC) wParam, TRANSPARENT);
ExtTextOut((HDC) wParam,rectCli.left,rectCli.top,0,NULL,TEXT ("TIMXX"),5,NULL);

Wrong Method 6:
Override the Picture control's window proc and in the WM_PAINT:
SetBkMode (GetDC(hWnd), TRANSPARENT);
ExtTextOut(GetDC(hWnd),rectCli.left,rectCli.top,0,NULL,TEXT ("TIMXX"),5,NULL);

Wrong Method 7:
Override the Picture control's window proc and in the WM_PAINT:
HDC hdcT=GetDC(hWnd);
SetBkMode (hdcT, TRANSPARENT);
ExtTextOut(hdcT,rectCli.left,rectCli.top,0,NULL,TEXT ("TIMXX"),5,NULL);
ReleaseDC(hWnd,hdcT);

Final Method:
Override the Picture control's window proc Process the default window proc first
CallWindowProc((WNDPROC)l_winProc,hWnd, wMsg, wParam, lParam);
and in the WM_PAINT:
HDC hdcT=GetDC(hWnd);
SetBkMode (hdcT, TRANSPARENT);
ExtTextOut(hdcT,rectCli.left,rectCli.top,0,NULL,TEXT ("TIMXX"),5,NULL);
ReleaseDC(hWnd,hdcT);

Remark:
HDC GetDC(HWND hWnd); //This function retrieves a handle to a display device context (DC)ReleaseDC(); //must call ReleaseDC when you get the HDC by calling GetDC()


WM_PAINT hdc = (HDC) wParam;
//Parametershdc Handle to the device context to draw in. If this parameter is NULL, use the default device context.

How to use Memory Mapped file

First, you have to open that file

CreateFileForMapping

then create the memory mapped file object, you can give a name to this file-mapping object.

CreateFileMapping

Map the object into the address space of calling function

MapViewOfFile

Now you can deal with the file as dealing with a memory space.

When you finish, you have to unmaps a mapped view of a file from the address space of the calling process

UnmapViewOfFile

and close the file-mapping object and the file using

CloseHandle

Wednesday, April 04, 2007

戰爭機器 Gears of War - Chainsaw Jump Glitch Tutorial

YouTube - Gears of War - Chainsaw Jump Glitch Tutorial

戰爭機器裡面的確有很多Bug,其中幾項Bug的功用反而像是秘技

玩家也在爭論到底該不該把這些Bug給修掉~~

但是我要講的是~~~

網路上面教人家怎麼使用這些Bug, 都是半真半假

假的是你照做 都做不出來, 還是有些地方不一樣

或是參雜錯誤的資訊

都會偷留一手~~~

實在有夠機車

還好我學會了幾項最重要的Glitch

但是還是要繼續多學點 哈哈

Sunday, April 01, 2007

TCP/IP Ports

TCP/IP Ports:

網管參考~~

用FOXY抓檔!?三思而後行!完全解析FOXY分享原理!

用FOXY抓檔!?三思而後行!完全解析FOXY分享原理!
有很多好用的程式都是這樣重新封包變木馬的,
先把木馬跟程式綁在一起壓縮,然後做成EXE的自解檔,
有興趣的話可以開WinRAR自己做看看"