C#程式以「系統管理者身分」執行 (UAC)
這個問題很有趣,有三個解法
1. build完後,在app上按右鍵選「系統管理者身分」執行.
2. build完後,在app的properties->Capability 選以系統管理者身分執行
3. 在VS的專案中右鍵選 Add->Add New Item->Vistual C# item中選generic -> Application Manifest file
確定後 把requestedExecutionLevel 改成 requireAdministrator, uiAccess改成true 如下,接者按REBUILD 就ok了
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel node will disable file and registry virtualization.
If you want to utilize File and Registry Virtualization for backward
compatibility then delete the requestedExecutionLevel node.
-->
<requestedExecutionLevel level="requireAdministrator" uiAccess="true" />
</requestedPrivileges>
參考
http://www.dotblogs.com.tw/jjnnykimo/archive/2009/05/08/8346.aspx
這個問題很有趣,有三個解法
1. build完後,在app上按右鍵選「系統管理者身分」執行.
2. build完後,在app的properties->Capability 選以系統管理者身分執行
3. 在VS的專案中右鍵選 Add->Add New Item->Vistual C# item中選generic -> Application Manifest file
確定後 把requestedExecutionLevel 改成 requireAdministrator, uiAccess改成true 如下,接者按REBUILD 就ok了
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel node will disable file and registry virtualization.
If you want to utilize File and Registry Virtualization for backward
compatibility then delete the requestedExecutionLevel node.
-->
<requestedExecutionLevel level="requireAdministrator" uiAccess="true" />
</requestedPrivileges>
參考
http://www.dotblogs.com.tw/jjnnykimo/archive/2009/05/08/8346.aspx
在c#裡面處理process
很直覺得就是new 一個process,start就可以去確定了
真是溫馨,四個 "+" 果然不一樣
http://createps.pixnet.net/blog/post/32338987-c%23-%E9%96%8B%E5%95%9F%E5%9F%B7%E8%A1%8C%E6%AA%94
很直覺得就是new 一個process,start就可以去確定了
真是溫馨,四個 "+" 果然不一樣
http://createps.pixnet.net/blog/post/32338987-c%23-%E9%96%8B%E5%95%9F%E5%9F%B7%E8%A1%8C%E6%AA%94
今天發現一件很GY的事情,有些人喜歡在輸入帳密的時候給你亂打
很好~~ 因為大家都發揮了QA的精神, TEST NEVER STOP!!!!!!!!!!
所以身為一個專業的QA, 對於CODE的品質絕對不能馬馬乎乎
參考http://www.dotblogs.com.tw/kirkchen/archive/2010/03/04/13887.aspx
哈哈加入這個判斷後,看看還有誰會亂輸入^^
很好~~ 因為大家都發揮了QA的精神, TEST NEVER STOP!!!!!!!!!!
所以身為一個專業的QA, 對於CODE的品質絕對不能馬馬乎乎
參考http://www.dotblogs.com.tw/kirkchen/archive/2010/03/04/13887.aspx
public void Register(string name,string email,string,int age)
{
if (string.IsNullOrEmpty(name))
throw new ArgumentNullException();
if (string.IsNullOrEmpty(email))
throw new ArgumentNullException();
if(!Regex.IsMatch(email,@"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$"))
throw new ArgumentException();
if(age < 18 )
throw new ArgumentOutOfRangeException();
...
}哈哈加入這個判斷後,看看還有誰會亂輸入^^
超溫馨的一個地方
我一直想找到這個方法要怎麼寫
沒想到有SOURCE CODE讓人家參考
太棒了
我愛open source~^
總有一天我也要把我的程式 公開給大家用^^
http://ioannblog.blogspot.com/2009/08/trojan-gt6174-ioann-windows-2000-xp.html
我一直想找到這個方法要怎麼寫
沒想到有SOURCE CODE讓人家參考
太棒了
我愛open source~^
總有一天我也要把我的程式 公開給大家用^^
http://ioannblog.blogspot.com/2009/08/trojan-gt6174-ioann-windows-2000-xp.html
%processor_architecture% 當全世界的人都知道這個可以來判斷OS ARC..
那為啥在VS2010裡會傳回x86在64bit OS?????
就是因為在PROJECT-> PROPERTY->BUILD-> PLATFORM TARGET裡沒有改成
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
那為啥在VS2010裡會傳回x86在64bit OS?????
就是因為在PROJECT-> PROPERTY->BUILD-> PLATFORM TARGET裡沒有改成
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
ANY CPU
Query FB friend list and last status
http://stackoverflow.com/questions/6066360/facebook-c-sharp-sdk-batchasync-get-all-friends-last-statuses-by-one-batch-req
http://developers.facebook.com/docs/reference/fql/status/
Implement with datagrid: view icon, name, id
http://www.died.tw/2010/11/facebook-c-sdk.html
Implement foreach
http://www.dotblogs.com.tw/atowngit/archive/2009/11/22/12107.aspx
今天晚上研究這個議題,才知道自己懂的很少XD~~
http://stackoverflow.com/questions/6066360/facebook-c-sharp-sdk-batchasync-get-all-friends-last-statuses-by-one-batch-req
http://developers.facebook.com/docs/reference/fql/status/
Implement with datagrid: view icon, name, id
http://www.died.tw/2010/11/facebook-c-sdk.html
Implement foreach
http://www.dotblogs.com.tw/atowngit/archive/2009/11/22/12107.aspx
今天晚上研究這個議題,才知道自己懂的很少XD~~
