Turn on/off “Aero glass” in Vista

Windows Vista Aero Glass

“Aero Glass” is a new feature which allows Vista to show aero effect like the snapshot.

**How to turn on or turn off it?
**[My Computer]–> [Advance Setting] –> [Performance Setting] –> [Video Effect] –> [Enable Desktop Composition].

Or[Ctrl+ Shift+ F9]

How to turn on/off it by Window API?
DwmEnableComposition(BOOL fEnable);

**How to use “Aero Glass” to blur a Window?
**DwmEnableBlurBehindWindow  and DwmExtendFrameIntoClientArea.

**
For more detail information to refer **

陶吉吉 / 太美麗


(圖片來源: 博克來網路書店)

最近陶吉吉所發行的最新專輯–太美麗. 算是最近我唯一購買的中文專輯之一. 原因也相當簡單~~ 就是好聽的歌曲實在太多了~~ 整張專輯帶給人舒服的感覺. 所有我喜歡的歌曲列出如下:

  1. Olia: 其實我第一首想推薦的不是”太美麗”, 而竟然是本張專輯最後一首歌的”Olia”. 根據著陶吉吉每張專輯都會有個女子名的慣例~~ (Melody 就是其中一個例子, 還有Catherine..). Olia這首歌有種舒服而令人懷舊的曲調敘述著時光的過去與愛人的離開..  每次心情不好的時候都會令我想聽這首歌~ 而聽著這首歌曲就會讓我的心境變的異常的平靜~  或許對於感情上 愛人的離去對於每個人而言都會同樣無奈的感受吧!!
    **
  2. 太美麗: 老實的講~~ 第一次聽完這首歌的時候, 我感動的快要哭了. 原因就是在整個詞太感動人心了. 充分的表現出每個戀愛中女人癡情的一面. 也再三的強調了”認真的女人最美麗”~~ 

  3. Walk On: 輕鬆的曲調, 簡單而讓人充滿精神的歌詞一向是我的最愛. 而這首歌再炎炎夏日的午後, 開再濱海公路奔馳的時候, 也是最適合撥放喔~~

  4. 似曾相識: 第一次聽完這首歌, 就決定要買這張專輯了.. 也一直以為這首歌應該是第二主打才對~~ (謎之音: 第二主打是跟蔡依琳的 “今天你要嫁給我”) 不過~~ 竟然部是. 這首歌敘述前世情緣的感受讓人家覺得相當的夢幻..  也是比較少有這樣的歌曲來敘述著 匆匆一撇卻讓你無法忘懷的人吧~~

  5. 自導自演的悲劇: 緩慢的語調~~ 述說著每段戀曲最後就像是按照著劇本一般走到分手的結局~~ 這樣的戀情或許每個人都經歷過. 而這首歌就是在唱著這樣無奈而難過的心情.   很值得一聽..

  6. 每一面都美: 一聽到這首歌的前奏~~ 會覺得跟”太美麗”有點類似~~ 但是慢慢聽下來~~ 卻給人一種完全不同的心境~~ 不過這首歌所敘述的就像是熱戀中的男女~~ 會認為對方的每一面都相當的美麗~~ 算是很甜蜜的一首歌.

對於我而言~~ 一張專輯只要有三首好聽的歌曲~ 我就會購買~ 現在這張專輯~~ 我都已經推薦了六首了~~ 那各位還不買??

How to login as Administrator in Windows XP and Vista?

In Vista:

First you must to enable “Administrator” account in your OS.

My Computer (right click) –> [Manage] –> [Users and Groups] –> Users –> Administrator –> Properties.

Then do the same thing as WinXP do.

In WinXP:

Method 1: Using TweakUI Power Toy for Windows XP

Download TweakUI from here:

v2.00 for Windows XP    v2.10 for XP SP1 and above

Open TweakUI and click “Logon” option in the left pane. Put a checkmark against the option “Show Administrator on Welcome Screen”. Click OK to close TweakUI. Logoff and see if Welcome Screen lists Administrator login. Changes are immediate and you can use the Winkey + L to switch back to Welcome Screen to see Administrator account is listed.

**

Method 2 - Manual registry edit

  • Click Start, Run and type Regedit.exe

  • Navigate to the following key:

HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows NT CurrentVersion Winlogon SpecialAccounts UserList
 

  • Use the File, Export option to backup the key.

  • Right-click in the right pane and select New DWORD Value.

  • Type-in Administrator as the value.

  • Double-click Administrator, and assign a value of 1

  • Close Regedit

**

Reference:

http://windowsxp.mvps.org/admins.htm

unresolved external symbol “wchar_t * __stdcall _com_util::ConvertStringToBSTR

If you link code found some error like bellow:

error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::ConvertStringToBSTR(char const *)" (?ConvertStringToBSTR@_com_util@@YGPA_WPBD@Z) referenced in function "public: __thiscall _bstr_t::Data_t::Data_t(char const *)" ([??0Data_t@_bstr_t@@QAE@PBD@Z](mailto:??0Data_t@_bstr_t@@QAE@PBD@Z)) > >

Solve:

Try to link “comsuppwd.lib” in debug AdditionalDependencies. Link “comsuppw.lib” in release AdditionalDependencies.

Reference:

  1. http://msdn2.microsoft.com/en-us/library/t58y75c0.aspx

  2. http://www3.ccw.com.cn/club/essence/200103/532.htm

可愛的小黑人面紙套

Jenny 之前買給我的~~~蠻可愛的~~

IMAGE_00049.jpg IMAGE_00050.jpg IMAGE_00051.jpg

Remote debug in VS2005

Reference:

  1. Follow the reference for necessary configuration on local project and remote machine’s network settings.
  2. Install the debug package on the remote machine and launch the debug monitor. Under the installation diretory Microsoft Visual Studio 2005vsRemote Debuggerx86
  3. Startup “Visual Studio 2005 Remote Debugger”, and use “No Authentication”(Naive only).

  4. Copy follow folders from local machine if needed.
    C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c.cat
    C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c.manifest
    C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471.cat
    C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471.manifest
    C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_66b81908.cat
    C:WINDOWSWinSxSManifestsx86_Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_66b81908.manifest
    C:WINDOWSWinSxSPoliciesx86_policy.8.0.Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_x-ww_09e017b4
    C:WINDOWSWinSxSPoliciesx86_policy.8.0.Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_x-ww_a193936f
    C:WINDOWSWinSxSPoliciesx86_policy.8.0.Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_x-ww_6afafa78
    C:WINDOWSWinSxSx86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c
    C:WINDOWSWinSxSx86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471
    C:WINDOWSWinSxSx86_Microsoft.VC80.DebugOpenMP_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_66b81908
  5. Copy your debug code in debug machine.
  6.  Change your project setting as follow.