These codes are made by policy based programming. You can find the Policy –> RuleSet –> Rule to do some kinds of works. So, I named it as PolicyEngine. Add the comparators, rules, and collected these rules into rulesets. Finally, run it in an engine with many policies. If there is any problem, please contact me. I will answer it for you. Thank you.
2012年7月26日 星期四
2012年7月22日 星期日
Usage of W2A, A2W API
很久沒寫windows API的用法, 雖然這兩個也不是什麼特別的API, 但是在常對字串轉換的人而言, 這兩個API是很有用的, 看一下MSDN的說法:
http://msdn.microsoft.com/en-us/library/87zae4a3(v=vs.80).aspx
2012年4月6日 星期五
2012年3月28日 星期三
XML Path Language (XPath)
- Wiki: http://zh.wikipedia.org/wiki/XPath
- XPath example: http://www.w3schools.com/xpath/xpath_examples.asp
- XPath Syntax: http://www.w3schools.com/xpath/xpath_syntax.asp
2012年3月19日 星期一
Embdded “requireAdministrator” in VS2005
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="<AppName>" type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
將上面的copy下來檔存成.manifest, 然後開啟VS2005, 依下面步驟
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="<AppName>" type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
將上面的copy下來檔存成.manifest, 然後開啟VS2005, 依下面步驟
- Open your project in Microsoft Visual Studio 2005.
- Under Project, select Properties.
- In Properties, select Manifest Tool, and then select Input and Output.
- Add in the name of your application manifest file under Additional manifest files.
- Rebuild your application.
訂閱:
文章 (Atom)
