世界七不思議





過去記事

« August 2006 | Main | October 2006 »

September 23, 2006

某Y! JAPAN..
[雜談]

其實我真的不太清楚為甚麼自己的信用卡不能的..orz
知道詳細的人可以告訴我XD

連a/c都被lock了..orz
yahoo_wallet.png


Posted by 雞 at 8:56 PM | Comments (8) | TrackBack

September 20, 2006

dsound.h
[一応IT人]

發現了一個問題,在網上search過,好像很多地方都沒記載明確的答案

現在把找到的答案記下來。

如果include了dsound.h後compile時出現類似的error:

c:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(230) : error C2143: syntax error : missing ';' before '*'
c:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(230) : error C2501: 'LPCWAVEFORMATEX' : missing storage-class or type specifiers
c:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(349) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
c:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(349) : error C2501: '_DSBUFFERDESC::LPWAVEFORMATEX' : missing storage-class or type specifiers
c:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Include\dsound.h(349) : error C2501: '_DSBUFFERDESC::lpwfxFormat' : missing storage-class or type specifiers

幾乎在所有search result裏都會有人說是忘了加dsound.lib在linker的Search path裏..
假設你已經加了dsound.lib但仍然有這個問題的話,
試試檢查#include <mmsystem.h>和#include <mmreg.h>是不是在#include <dsound.h>之前,
若然不是的話,把mmsys和mmreg兩行放在dsound前:

#include <mmsystem.h>
#include <mmreg.h>
#include <dsound.h>

這大概是M$的錯,我這樣做之後問題就解決了~
(VS2003+DXSDK Oct 2004)


Posted by 雞 at 3:24 PM | Comments (0) | TrackBack

September 1, 2006

privacy
[雜談]

有時候看到一些人,一邊在保護著自己的個人資料(*);但另一方面卻在不斷的暴露別人的個人資料...
對於這些人我只能夠作出「笨蛋」的評價...

(*):我所說個人資料的定義是指,一切能夠幫助第三者(這裏指任何東西)對一個獨立個體(這裏指人類)作出辨認/辨別等行為的資訊,而其資訊包括但不只限於任何形式的文字、聲音或圖像...


Posted by 雞 at 11:50 PM | Comments (1) | TrackBack