• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            3D FPS

            1234567890

              C++博客 :: 首頁 :: 聯系 :: 聚合  :: 管理
              57 Posts :: 2 Stories :: 57 Comments :: 0 Trackbacks

            常用鏈接

            留言簿(10)

            我參與的團隊

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            #

            今天下午 我在看電子書的時候 突然發現一些惡趣味 : 令我感動又好笑 !

             

            一個編程序的人寫的書 在書上將一個計算機軟件的某個 概念比作衛生間 廁所馬桶 

            而這個是在飛機上寫的 寫書的人 真勤奮的呀 

             


             

             

            posted @ 2012-02-10 15:53 DK_jims 閱讀(184) | 評論 (0)編輯 收藏

            com安全數組類型

            創建 復制數據給它 例如這樣:

             1// set up safearray -  SAFEARRAY is defined OAIDL.H
             2 SAFEARRAY *psa;
             3
             4 // create a safe array to store the stream data
             5 psa = SafeArrayCreateVector( VT_UI1, 0, llen );
             6
             7 // pointers to byte arrays
             8 unsigned char *pData = NULL;
             9
            10 // get a pointer to the safe array. Locks the array.
            11 SafeArrayAccessData( psa, (void**)&pData );
            12 
            13 // copy the memory file into the safearray
            14 memcpy( pData, pMemData, llen );
            15
            16 // clean up buffer
            17 delete pMemData;
            18 
            19 // unlock access to safearray
            20 SafeArrayUnaccessData(psa);
            21
            22 // return a pointer to a SAFEARRAY allocated here
            23 return psa;
            24
            25



             接收 復制數據給別人 例如這樣: 

             1 long lLength;   // number of bytes
             2 char *pBuffer;   // buffer pointer
             3 
             4 // lock access to array data
             5 SafeArrayAccessData( psa, (void**)&pBuffer  );
             6
             7 // get number of elements in array. This is the number of bytes
             8 lLength = psa->rgsabound->cElements;
             9
            10 // attach the buffer to the memory file
            11 memfile.Attach((unsigned char*)pBuffer, lLength);
            12
            13 // start at beginning of buffer
            14 memfile.SeekToBegin();
            15
            16 // create an archive with the attached memory file
            17 CArchive ar(&memfile, CArchive::load | CArchive::bNoFlushOnDelete);
            18
            19 // document pointer is not used
            20 ar.m_pDocument = NULL;
            21
            22 // inflate the object and get the pointer
            23 rpObj = ar.ReadObject(0);
            24
            25 // close the archive
            26 ar.Close();
            27
            28 // Note: pBuffer is freed when the SAFEARRAY is destroyed
            29 // Detach the buffer and close the file
            30 pBuffer = (char*) memfile.Detach();
            31
            32
            33 // release the safearray buffer
            34 SafeArrayUnaccessData( psa );
            35





            posted @ 2011-12-25 18:43 DK_jims 閱讀(348) | 評論 (0)編輯 收藏

                 摘要:    微軟 CRT 函數表用幾頁word全部寫出來 Mrs Crt function 文擋 Mrs Crt function 文擋   版本信息: 版本 日期 作者 修改內容 1.0 2011-10-27 Mrs ...  閱讀全文
            posted @ 2011-11-15 23:55 DK_jims 閱讀(712) | 評論 (0)編輯 收藏

            手機壞
            下載鬧鐘軟件


            自己寫個垃圾應付一下早上無鬧鐘的情況

            非常簡單的

            LRESULT CMainDlg::OnBnClickedButton1(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
            {
                
            // TODO: 在此添加控件通知處理程序代碼
                CEdit ehour = GetDlgItem(IDC_EDIT1);
                CEdit emin 
            = GetDlgItem(IDC_EDIT2);
                CButton btnStart 
            = GetDlgItem(IDC_BUTTON1);

                
            if( bstart == false)   //還未開始 點擊了是要開始
                {
                    ATL::CString strTemp;
                    ehour.GetWindowText(strTemp);
                    
            int hour = _wtoi(strTemp.GetBuffer());
                    emin.GetWindowText(strTemp);
                    
            int tmin = _wtoi(strTemp.GetBuffer());

                    
            this->no_hour = hour;
                    
            this->no_min = tmin;
                    SetTimer(
            1,3000,0);

                    ehour.EnableWindow(
            false);
                    emin.EnableWindow(
            false);
                    btnStart.SetWindowText(L
            "End");

                    bstart 
            = true;
                    brun_one 
            = false;
                }
                
            else if ( bstart == true)  //已經開始 點擊是結束
                {
                    ehour.EnableWindow(
            true);
                    emin.EnableWindow(
            true);
                    KillTimer(
            1);
                    bstart 
            = false;
                    btnStart.SetWindowText(L
            "Start");
                    brun_one 
            = false;
                    mp3.Close();
                }

                
            return 0;
            }

            LRESULT CMainDlg::OnTimer(UINT_PTR nIDEvent)
            {
                
            //CTime tmer = CTime::GetCurrentTime();
                KillTimer(1);
                time_t t;
                time(
            &t);
                
            struct tm *tmtmer = localtime(&t);


                
            if((tmtmer->tm_hour == this->no_hour ) && ( tmtmer->tm_min == this->no_min))
                {
                    
            if(brun_one == false )
                    {
                        
            //MessageBox(L"",L"",0);
                        mp3.Open(L"Superman.mp3");
                        mp3.Play();
                        brun_one 
            = true;
                        KillTimer(
            1);
                    }
                }

                SetTimer(
            1,3000,0);
                
            return 0;
            }


            /Files/jimsmorong/nozhong.rar
            posted @ 2011-09-27 21:44 DK_jims 閱讀(199) | 評論 (0)編輯 收藏

            edit control 和spin control是綁定在一起的,也就是他們得數值是一樣的,

            在設計的過程中綁定在一起,其實是很簡單的一個技巧,但是可以非常方便的使用。


            首先,要讓Spin Control的Tab Order緊跟著Edit Control(就是說,Spin Control的Tab Ordr是Edit Control的Tab Order加1)。
            然后,設置Spin Control的Auto Buddy和Set Buddy Integer屬性為True。

            設置tab order 的方法是 ctrl+d ,然后用鼠標按個點擊選擇,就是按TAB鍵是焦點在窗體上的移動順序。

            posted @ 2011-09-05 11:31 DK_jims 閱讀(784) | 評論 (1)編輯 收藏

            函數說明
              UpdateData() 是MFC的窗口函數,用來刷新數據的。
            編輯本段函數使用
              UpdateData()參數只有一個,默認為TRUE。
              UpdateData(TRUE)
              ——刷新控件的值到對應的變量。(外部輸入值交給內部變量)
              即:控件的值—>變量。
              UpdateData(FALSE)
              —— 拷貝變量值到控件顯示。(變量的最終運算結果值交給外部輸出顯示)
              即:變量值—>控件顯示。
            posted @ 2011-08-04 09:21 DK_jims 閱讀(185) | 評論 (0)編輯 收藏

            我在 http://bbs.city.tianya.cn/tianyacity/Content/45/2/1072219.shtml

             

            解析《蝙蝠俠前傳2——黑暗騎士》(轉載)

             

            下面這張圖沒什么多說的,就是小丑在片中惟一一次吃東西的鏡頭。他只把上面那個紅色的吃了,下面的蝦沒吃。如果你因此說小丑是素食主義者,至少從該片內容來看,沒人有證據反駁你


             

            我覺得分析得不對小丑 也許只是看到只蝦未熟所以不吃,也有可能是怕吃了會過敏,也有可能是被有殼吃得麻煩,阻住做正經事

            posted @ 2011-08-01 20:12 DK_jims 閱讀(165) | 評論 (0)編輯 收藏

                 摘要: 1.在此建一個.emacs 文件        C:\Documents and Settings\jims_mrs\Application Data .emacs Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeH...  閱讀全文
            posted @ 2011-04-14 14:20 DK_jims 閱讀(658) | 評論 (0)編輯 收藏


            X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

            聽說上面這段代碼是病毒

            具體操作:
              1.鼠標右鍵點擊桌面空白處,創建一個“文本文檔”。
              2.將上面的這段測試代碼復制到“文本”里,保存,然后可以直接右鍵點擊這個文本,用殺毒軟件掃描。也可以等一會,如果你的殺毒軟件還行,會自動報毒并將該文本刪除,那就可以初步放心了。

            下面是檢驗殺毒軟件是否夠靈敏的操作:

              測試等級:
              特等:復制完代碼后便提示內存有病毒
              優等:剛保存完就提示病毒(或者直接刪除)
              中等:保存后幾秒提示病毒(或者直接刪除)
              下等:需自己啟動病毒掃描查殺才提示病毒(或者直接刪除)
              劣等:無論怎么掃描都無法提示病毒(或者直接刪除)

            只是一個小測試,并不能完全說明情況,但至少應該提供點初步的判斷!

            編注:我親自試驗了一下,本本上裝的是NOD32 是優等

            posted @ 2010-11-01 07:41 DK_jims 閱讀(144) | 評論 (0)編輯 收藏

            今天周未看《社區網絡》

            講facebook創始人的故事

            我榴意到主角用的是emacs

             

            posted @ 2010-10-31 20:45 DK_jims 閱讀(190) | 評論 (0)編輯 收藏

            僅列出標題
            共6頁: 1 2 3 4 5 6 
            亚洲国产精品久久久天堂| AV色综合久久天堂AV色综合在| 青青草国产精品久久| 国内精品久久久久久久97牛牛| 久久精品国产精品亚洲精品| 精品久久人人爽天天玩人人妻| 久久99精品久久久久久噜噜| 久久精品国产欧美日韩99热| 久久人人爽人人爽人人片av高请| 99久久精品免费国产大片| 久久精品这里只有精99品| 无码人妻久久久一区二区三区| 91秦先生久久久久久久| 97香蕉久久夜色精品国产| 久久精品中文字幕无码绿巨人| 久久久久这里只有精品| 久久精品九九亚洲精品| 伊人久久国产免费观看视频| 国产欧美久久一区二区| 国产69精品久久久久9999APGF | 久久婷婷五月综合成人D啪| 99久久国语露脸精品国产| 久久久黄片| 国产999精品久久久久久| 久久国产免费观看精品| 欧美黑人激情性久久| 99久久免费国产精品特黄| 日韩中文久久| 久久久久久无码国产精品中文字幕 | 一级女性全黄久久生活片免费| 99久久精品国产麻豆| 综合久久国产九一剧情麻豆| 青青草原综合久久大伊人导航| 久久久久久a亚洲欧洲aⅴ | 色妞色综合久久夜夜| 伊人久久无码精品中文字幕| 精品国产综合区久久久久久 | 亚洲性久久久影院| 伊人久久一区二区三区无码| 污污内射久久一区二区欧美日韩 | 伊人情人综合成人久久网小说|