Public Function Encrypt(strPWtoEncrypt As String) As String Dim strPword As String Dim bytCount As Byte Dim intTemp As Integer For bytCount = 1 To Len(strPWtoEncrypt) intTemp =
上次說到C++函數計時,但是自從VC6以後,Profile功能便從Team Server Editions以外的版本中去掉了,如果沒有此版本的VC,只能自己動手了。這是另一種使用Profile的方法,根據MSDN關於/callcap 的說明,編譯WinCE應用程式時可以使用這個開關,試過後在Win32平台上也可以。這裡需要注意的是在_CAP函數中,最好不修改寄存器,那樣可能導致被調用的函數產生錯誤。參考:http://www.google.com/codesearch?hl=zh-CN&
Q: What are '__FILE__' and '__LINE__'?A: '__FILE__' and '__LINE__' are predefined macros and part of the C/C++ standard. During preprocessing, they are replaced respectively by a constant string holding the current file name and by a integer
/// <summary>/// DataTable轉換為List<Model>/// </summary>public static class DataTableToListModel<T> where T : new(){ public static IList<T> ConvertToModel(DataTable dt) { //定義集合 IList<T> t
最近實習早出晚歸很累,一直沒有更新!額,基礎還是要鞏固的!匿名函數在學習委託時,有個概念叫做匿名函數:即不需要在外部定義方法,直接在初始化委託時申明方法。先來看一個例子。 class Program { static void Main(string[] args) { //ad指向匿名函數 //delegate(參數列表){方法體} AnonyDelegate ad = delegate(
PrecedenceOperatorDescriptionExampleAssociativity1()[]->.::++--Grouping operatorArray accessMember access from a pointerMember access from an objectScoping operatorPost-incrementPost-decrement(a + b) / 4;array[4] = 2;ptr->age = 34;obj.age = 34;