網頁

2015年1月28日 星期三

Windows 空間/效能

Last Update: 2016/01/26 01:17+08
Type: Note



Temp資料夾

修改環境變數 [Temp] 和 [TMP] 有分 使用者的 和 系統的
將其路徑設定到D槽


hiberfil.sys
電腦休眠時, 會將當前的記憶體狀況儲在這邊
可以用系統管理員身份執行(cmd) powercfg -h off
來關閉它



User 資料夾 移到D槽
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList 未完待續...


Windows Commands

Last Update: 2015/01/29 13:48+08
Type: Note



Microsoft config
msconfig

控制台->聲音
mmsys.cpl

服務
services.msc

註冊碼
regedit



2015年1月8日 星期四

dotNet Windows Form Note

Last Update: 2015/01/08 16:42
Type: Note



Form.KeyPreview = true
Form 的 event KeyPress, KeyDown and KeyUp 可接收所有控制項的 keyboard event



Control Re-Paint 的方法
Control.Invalidate() //僅通知無效
Control.Update()
Control.Refresh()



2015年1月6日 星期二

C++ - Operator with reference(&)

Last Update: 2015/01/07 10:56+08
Type: Note



Intro

最近都在玩 pointer(*) 和 reference(&)
這次這篇主要是要探討 operator 與 reference(&) 的關係
之前提到 C++ &(and) 與 const 的關係
其中有一個 用 reference(&) 的方式 作為 function return, 有些人提到這是個 evil 作法
無論如何, 它也是個有用的東西, 只是要注意使用