c/c++ 2014-05-02

MSDN http://msdn.microsoft.com/library/ html



MFC獲取mfc中Edit輸入的文字java

CString str;
GetDlgItemText(IDC_EDIT, str);
windows


Autorun.inf
工具

[Autorun]
label="12321"
open=應用程序

label: 放於優盤,則優盤加載後,卷標自動改成12321。強調下,須要優盤徹底加載後才能生效。url

open: 自動打開應用程序spa


獲取磁盤信息.net

GetVolumeInformationcode


獲取磁盤使用容量orm

GetDiskFreeSpaceExserver


遍歷全部優盤

SetupDiGetDeviceProperty 

http://stackoverflow.com/questions/3438366/setupdigetdeviceproperty


Explorer.EXE進程自動重啓的故事

研究windows工做機制的一個好例子

http://wenku.baidu.com/link?url=54caKWfaXyL_gVunZIcLpwtZArAxeD6Fe6qLxyPo3bqfnjPOcVNFGJUdwLxaSZGETujVrgB2T-Pu_7LSW6Bm2rvWFAq_woVz4BWWds6Yf9K


windows結束進程(dos命令)

列出在用進程

tasklist

終止進程

taskkill /f /im cmd.exe


註冊表

http://tech.163.com/06/0713/14/2LTT609H00091VRL.html

http://www.cnblogs.com/jokey/archive/2010/06/17/1759370.html

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System

DisableRegistryTools 禁用註冊表

DisableTaskMgr 禁用任務管理器


程序監控小工具

http://server.zol.com.cn/178/1786830.html


異常處理try catch

http://blog.csdn.net/windhaunting/article/details/4735338   涉及到release處理

http://www.cnblogs.com/rainbowzc/archive/2013/02/26/2933137.html  EHa 異常處理

http://wenku.baidu.com/link?url=l1M5OWrt_n3RrmpiMNAeeIG2cE8PM_JSaBwubUNtOYRXJs8Esdh5c4KHIQlhUVXdIB_LIle83Bx6IUwAU_cmz8VangvSOSWtuyTJFYgUugG


進程通信

http://blog.csdn.net/aristolto/article/details/11240553

 

複製項目並更名

複製這個項目並單獨打開它,直接將.vcxproj文件更名便可



release 編譯

fatal error C1010: 在查找預編譯頭時遇到意外的文件結尾。是否忘記了向源中添加「#include "stdafx.

http://blog.sina.com.cn/s/blog_58649eb30100th2k.html



LINK  fatal error LNK1123 轉換到 COFF 期間失敗 文件無效或損壞

http://www.cnblogs.com/newpanderking/articles/3372969.html

=>方法一正解
相關文章
相關標籤/搜索