• <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>
            posts - 319, comments - 22, trackbacks - 0, articles - 11
              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

                 摘要: 字符集編碼與 C/C++ 源文件字符編譯亂彈 2010年2月24日Breaker原創發表評論閱讀評論 最近在看國際化編程 (i18n: internationalization) 的東西,也弄清楚了點字符集有關的一些問題,其實網上的一些牛人已經將字符集、Unicode 等相關的問題說的很清楚了,我在這里引用他們的總結并自己小結一下心得,并且實驗一下在編譯時,源代碼自身的字...  閱讀全文

            posted @ 2011-05-12 21:40 RTY 閱讀(543) | 評論 (0)編輯 收藏

            Xilisoft Video Converter Ultimate 6.5 是一款簡單,快速,可靠,轉換格式超過 150 種 視頻和音頻轉換器,支持轉換幾乎所有流行的格式音視頻格式 AVI, MPEG, WMV, DivX, MP4, H.264/AVC, AVCHD, MKV, RM, MOV, XviD, 3GP,MP3, WMA, WAV, RA, M4A, AAC, AC3, OGG。針對 PSP, PS3, iPod, iPhone, Apple TV, Xbox, Google phones, iPad 等常用的數碼設備,提供了最有效的方法來解碼 /編碼高清視頻等預置方案。
            此外,從視頻中抓取您喜愛的圖片或者將多張圖片製作成獨特的視頻,合併,剪裁,剪輯錄像;調整視頻顏色和效果,加水印,字幕和音軌,并設定視頻 /音頻參數。支持多線程和批量轉換,多核心CPU處理,轉換速度快。隨著 Xilisoft視頻轉換器6,你永遠不會缺少辦法,使您的影片視覺和聽覺都令人驚訝。軟件語言多國語言含簡體中文版。
            主要功能:
            ˙高清晰度視頻轉換器,HD Video 如 H.264/MPEG-4 AVC, AVCHD Video (*.m2ts, *.mts), Apple TV h.264 720P, MKV, HD WMV, and MPEG2/MPEG-4...
            ˙支持多核心 CPU 處理,多線程和批量轉換。現在快 5倍!
            ˙支持高清視頻解碼 /編碼和 5.1 杜比環繞聲。
            ˙轉換所有流行的視頻和音頻格式。
            ˙合併多個視頻或圖片,并添加每兩個文件之間的轉換,以獲得一個完整的視頻。
            ˙剪輯視頻文件,以獲取你最喜歡的片段,并選擇將其合併成一個新的視頻。

            Xilisoft Video Converter Ultimate官方網站:
            http://www.xilisoft.com/
            Xilisoft Video Converter Ultimate v6.5.2官方下載:
            http://www.xilisoft.com/downloads/x-video-converter-ultimate6.exe
            Xilisoft Video Converter Ultimate v6.5.2注冊碼:
            用戶名:www.yyyww.com
            注冊碼:898F677B-5EDF-444C-B9843-8B0F-7D35-AD9E 

            新聞來源:yyyww咿呀呀www.yyyww.com  原文鏈接:http://www.yyyww.com/application/2011-02-06/356.html

            posted @ 2011-05-12 21:33 RTY 閱讀(1472) | 評論 (0)編輯 收藏

            Microsoft Mathematics 提供了一套數學工具,可以幫助學生輕松快速地完成學校作業。 通過 Microsoft Mathematics,學生可以在更好地了解預代數、代數、三角法、物理學、化學和微積分方面的基本概念的同時,學會分步解方程。
            Microsoft Mathematics 包含一個功能全面的圖形計算器,其功能可媲美手持計算器。 其他的數學工具還可幫助您計算三角關系、將一種單位制轉換為另一種單位制以及解方程組。
            Microsoft Mathematics 提供了圖形計算器(可用于繪制 2D 和 3D 圖形)、分步解方程功能以及幫助學生進行數學和科學研究的有用工具。

            Microsoft Mathematics官方下載網站:
            http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=9caca722-5235-401c-8d3f-9e242b794c3a
            Microsoft Mathematics 4.0簡體中文版下載地址:
            32位下載     64位下載

             

            -
            2 頂0 踩
            新聞來源:yyyww咿呀呀www.yyyww.com  原文鏈接:http://www.yyyww.com/application/2011-04-22/547.html

            posted @ 2011-05-12 21:31 RTY 閱讀(321) | 評論 (0)編輯 收藏

            avast! Internet Security 提供全面的防病毒、反間諜、反垃圾郵件和防火墻防護功能,現在又增加了全新的 avast! SafeZone 技術。 它可以創建一個隔離的虛擬桌面,供您安全地進行網上購物和網上銀行操作,而任何黑客均無法察覺這一桌面。
            絕對隱私的網上購物和網上銀行操作
            avast! SafeZone 可打開一個新的(干凈的)桌面,其他程序不會偵測到您當前的操作,并且在此桌面關閉后不會留下任何歷史記錄。 使用社交網絡和進行網上沖浪均可安全無憂
            我們獲認證和屢獲好評的一流防病毒軟件引擎和防護功能甚至可以阻擋先前未知的威脅 – 讓您在聊天或使用社交網站(如 Facebook、Twitter 等)時無后顧之憂。
            防止個人信息盜竊
            我們的靜默防火墻可阻擋針對您計算機的黑客攻擊和其他未授權訪問,確保您的數據萬無一失。
            保持您的郵件收件箱安全和干凈
            Internet Security 的反垃圾郵件功能可阻止垃圾郵件以及狡猾的釣魚軟件,避免您點擊會令您蒙受損失的“無惡意”鏈接。

            avast! Internet Security中文官方網站:
            http://www.avast.com/zh-cn/index
            avast! Internet Security 6.0.1125多國語言含簡體中文版下載地址:
            http://files.avast.com/iavs5x/setup_ais.exe
            avast! Internet Security 6.0.1125許可文件下載:


            Net2012-02-16License.rar 1f44788d11a5c8494333a8e7afe2ecaa.rar (1015 Bytes)

             

            -
            4 頂1 踩
            新聞來源:yyyww咿呀呀www.yyyww.com  原文鏈接:http://www.yyyww.com/anquan/2011-05-11/603.html

            posted @ 2011-05-12 21:26 RTY 閱讀(1307) | 評論 (0)編輯 收藏

            很多網友卸載低版本,想安裝新版本或者安裝了版本無法激活,又卸載,重新安裝這樣會導致office在安裝或者卸載的時候出現各樣的錯誤,以至于不能安裝任何版本的office.
            當您嘗試安裝新程序時,安裝過程并未完成。因此,該程序處于部分安裝狀態。當您嘗試再次安裝該程序時,將不會成功。
            此時無法刪除以前安裝的程序,因為安裝文件已損壞。
            如果以前嘗試安裝 Office 2010 時遇到問題。筆者最近就遇到無法卸載office 2010,點擊卸載沒有任何反應,才用此軟件解決


            Office 2010卸載工具下載:
            http://download.microsoft.com/download/2/1/8/218C926D-9400-43D6-9E81-E236AD9ED2A5/MicrosoftFixit50450.msi
            Office 2007卸載工具下載:
            http://download.microsoft.com/download/B/C/7/BC767024-747D-417A-BFCF-3C0806826140/MicrosoftFixit50154.msi
            Office 2003卸載工具下載:
            http://download.microsoft.com/download/D/1/8/D1893A85-9299-4372-9B51-DAACE77CEDEE/MicrosoftFixit50416.msi


            詳細介紹:http://support.microsoft.com/kb/290301


            新聞來源:yyyww咿呀呀www.yyyww.com  原文鏈接:http://www.yyyww.com/jiqiao/2010-11-21/69.html

            posted @ 2011-05-12 21:22 RTY 閱讀(886) | 評論 (0)編輯 收藏

            目前蘋果Mac OS X 10.6.7系統版本已經支持更新下載了,目前所有的MAC OS X 10.6用戶都可以升級到10.6.7版本。
            Mac OS X 10.6.7主要更新帶來了更佳的AirPay支持,Bonjour服務也提升了對Windows文檔共享的支持度,同時改進了圖形驅動,修復了Mac App Store上的一些漏洞。
            詳細更新介紹可查看官方網站:
            http://support.apple.com/kb/HT4472
            簡體中文更新包下載地址:
            http://support.apple.com/downloads/DL1363/zh_CN/MacOSXUpd10.6.7.dmg
            英文版更新包下載地址:
            http://support.apple.com/downloads/DL1363/en_US/MacOSXUpd10.6.7.dmg

            新聞來源:yyyww咿呀呀www.yyyww.com  原文鏈接:http://www.yyyww.com/news/2011-03-22/471.html

            posted @ 2011-05-12 21:17 RTY 閱讀(523) | 評論 (0)編輯 收藏

            EASEUS Partition Master是一所有功能于一身的分區解決方案和磁盤管理實用程序。它允許您擴展分區,特別是系統驅動器,解決磁盤空間不足的問題,輕松管理磁盤空間MBR和GUID分區表(GPT)在32位和64位上的Windows 2000 / XP / Vista/Windows 7。
            最流行的硬盤管理功能,匯聚了強大的數據保護,包括:分區管理,磁盤和分區復制向導和分區恢復向導。此外,你可以建立在系統啟動故障的情況下可啟動的CD / DVD。

            EASEUS Partition Master Professional官方網站:
            http://www.easeus.com/
            EASEUS Partition Master 8.0.1 Professional Edition活動完整版下載地址:
            http://ishare.iask.sina.com.cn/f/14459128.html
            注:軟件活動時候的完整版本,安裝無需任何序列號


            新聞來源:yyyww咿呀呀www.yyyww.com  原文鏈接:http://www.yyyww.com/qita/2011-04-07/515.html

            posted @ 2011-05-12 21:13 RTY 閱讀(350) | 評論 (0)編輯 收藏

            http://blog.163.com/modingfa_002/blog/static/11092546620114105622401/?latestBlog

            一、lupdate 的命令行參數說明

             1 Usage:
             2     lupdate [options] [project-file]qt lupdate 功能說明 - modingfa_002 - 出發了不要問路在哪!
             3     lupdate [options] [source-file|path|@lst-file]qt lupdate 功能說明 - modingfa_002 - 出發了不要問路在哪!  -ts ts-files|@lst-file
             4 
             5 lupdate is part of Qt's Linguist tool chain. It extracts translatable
             6 messages from Qt UI files, C++, Java and JavaScript/QtScript source code.
             7 Extracted messages are stored in textual translation source files (typically
             8 Qt TS XML). New and modified messages can be merged into existing TS files.
             9 
            10 Options:
            11     -help  Display this information and exit.
            12     -no-obsolete
            13            Drop all obsolete strings.
            14     -extensions <ext>[,<ext>]qt lupdate 功能說明 - modingfa_002 - 出發了不要問路在哪!
            15            Process files with the given extensions only.
            16            The extension list must be separated with commas, not with whitespace
            17 .
            18            Default: 'java,jui,ui,c,c++,cc,cpp,cxx,ch,h,h++,hh,hpp,hxx,js,qs,qml'
            19 .
            20     -pluralonly
            21            Only include plural form messages.
            22     -silent
            23            Do not explain what is being done.
            24     -no-sort
            25            Do not sort contexts in TS files.
            26     -no-recursive
            27            Do not recursively scan the following directories.
            28     -recursive
            29            Recursively scan the following directories (default).
            30     -I <includepath> or -I<includepath>
            31            Additional location to look for include files.
            32            May be specified multiple times.
            33     -locations {absolute|relative|none}
            34            Specify/override how source code references are saved in TS files.
            35            Default is absolute.
            36     -no-ui-lines
            37            Do not record line numbers in references to UI files.
            38     -disable-heuristic {sametext|similartext|number}
            39            Disable the named merge heuristic. Can be specified multiple times.
            40     -pro <filename>
            41            Name of a .pro file. Useful for files with .pro file syntax but
            42            different file suffix. Projects are recursed into and merged.
            43     -source-language <language>[_<region>]
            44            Specify the language of the source strings for new files.
            45            Defaults to POSIX if not specified.
            46     -target-language <language>[_<region>]
            47            Specify the language of the translations for new files.
            48            Guessed from the file name if not specified.
            49     -ts <ts-file>qt lupdate 功能說明 - modingfa_002 - 出發了不要問路在哪!
            50            Specify the output file(s). This will override the TRANSLATIONS
            51            and nullify the CODECFORTR from possibly specified project files.
            52     -codecfortr <codec>
            53            Specify the codec assumed for tr() calls. Effective only with -ts.
            54     -version
            55            Display the version of lupdate and exit.
            56     @lst-file
            57            Read additional file names (one per line) from lst-file.
            58 


            二、lrealease的命令行參數說明

             1 Usage:
             2     lrelease [options] project-file
             3     lrelease [options] ts-files [-qm qm-file]
             4 
             5 lrelease is part of Qt's Linguist tool chain. It can be used as a
             6 stand-alone tool to convert XML-based translations files in the TS
             7 format into the 'compiled' QM format used by QTranslator objects.
             8 
             9 Options:
            10     -help  Display this information and exit
            11     -idbased
            12            Use IDs instead of source strings for message keying
            13     -compress
            14            Compress the QM files
            15     -nounfinished
            16            Do not include unfinished translations
            17     -removeidentical
            18            If the translated text is the same as
            19            the source text, do not include the message
            20     -markuntranslated <prefix>
            21            If a message has no real translation, use the source text
            22            prefixed with the given string instead
            23     -silent
            24            Do not explain what is being done
            25     -version
            26            Display the version of lrelease and exit
            27 


            三、示例說明
            1. 提取aboutDialog.cpp欲翻譯的內容到ts文件中

            lupdate -codecfortr GB2312 aboutdialog.cpp -ts aboutdialog.ts

            2.如何在程序中使用ts生成的qm文件,下面用硬代碼來解釋
             1 #include <QtGui>
             2 #include "mainwindow.h"
             3 
             4 int main(int argc, char *argv[])
             5 {
             6     QApplication app(argc, argv);
             7 
             8     QTranslator translator;
             9     bool b = false;
            10     b = translator.load("aboutdialog.qm");
            11     app.installTranslator(&translator);
            12 
            13 
            14     MainWindow w;
            15     w.show();
            16 
            17     return app.exec();
            18 }
            19 

            3. 加載多個獨立的qm文件。一個QTranslator對象只有最后load的才算數!
                QTranslator translator;
                bool b = false;
                b = translator.load("aboutdialog.qm");
                b = translator.load("mainwindow.qm");
                app.installTranslator(&translator);
            說明:只有"mainwindow.qm" 文件被正常使用。

            下面可以通過聲明兩個Translator對象進行load,然后安裝就可以分模塊使用了!
            1     QTranslator translator1, translator2;
            2     bool b = false;
            3     b = translator1.load("aboutdialog.qm");
            4     b = translator2.load("mainwindow.qm");
            5     app.installTranslator(&translator1);
            6     app.installTranslator(&translator2);

            posted @ 2011-05-12 07:27 RTY 閱讀(624) | 評論 (0)編輯 收藏

            和C#類似,Qt為類提供了可以“獲取”、“設置”的快捷方式——Property,目的都是為了:數據成員方式使用,(函數成員方式定義)。
            C#使用get、set方式,達到“數據成員方式定義”的屬性;
            Qt使用普通函數成員+Q_PROPERTY宏,完成屬性,及元數據(簡單說:就是運行時可以查看的有關類的信息)的加入;



            <*.h>
            ……
            Q_PROPERTY( type name READ getFunction [WRITE setFunction] [RESET resetFunction] [DESIGNABLE bool] [SCRIPTABLE bool] [STORED bool] )

            /*
            Q_PROPERTY宏:將信息注冊如元對象(QMetaObject),
            QMetaObject類:提供一系列方法,查詢、修改已經注冊進的信息(如:屬性、枚舉、繼承關系、類名、信號、槽);
            QObject類就利用QMetaObject來查詢、修改屬性的,同時也是一種“運行期操作類屬性”的方法;
            name用于QObject獲取、設置屬性時使用;
            READ是必須的,不同與C#(C#可以僅定義只寫屬性);
            */

            public:
                    void setFunction(type);  
            // 參數(或下面get函數的返回值)的類型(type)可以是QVariant的繼承類,                                        
            //也可以是enum,但必須用Q_ENUMS(myenum……)注冊為元對象。

                    type getFunction() const;
                    void resetFunction();
            private:
                    type n;
            ……


            <*.cpp>
            ……
            void MyClass::setFunction(type name)
            {
                    n = name;
            }
            type MyClass::getFunction() const
            {
                    return n;
            }
            void MyClass::resetFunction()
            {
                    n = defaultName;
            }
            ……


            <使用方法>

            方法一:
            MyClass *mc =……;
            mc->setFunction(value);
            mc->getFunction();

            方法二:

            QObject *qo = ……;
            qo->setProperty("name",value);
            qo->getProperty("name");


            除了上面提到的,QT的元對象還提供了一些其他的東東:
            宏有:
            Q_OBJECT
            Q_PROPERTY
            Q_ENUMS
            Q_CLASSINFO
            Q_OVERRIDE

            tr()和trUtf8() 兩個函數是用于國際化中的字符串翻譯
            ______________________________________________________________________-

            定義格式如下:
            Q_PROPERTY(type name
                       READ getFunction
                       [WRITE setFunction]
                       [RESET resetFunction]
                       [DESIGNABLE bool]
                       [SCRIPTABLE bool]
                       [STORED bool])
            Q_PROPERTY() 是一個宏,用來在一個類中聲明一個屬性property,由于該宏是qt特有的,需要用moc進行編譯,故必須繼承于QObject類。在外界看 來,property跟類中數據成員沒有什么區別,但是還是有幾點不一樣,參考qt文檔,主要有以下幾點:
            1.必須有一個read函數。
            2.有一個可選的write函數。
            3.如果定義了"stored"屬性表明這是一直存在的。
            4.一個reset函數能夠把property設置成其默認狀態
            5.一個"desinable"屬性表明該property能在GUI builder(一般為Qt Designer)可見

            然后對照這些,自己寫了一個例子

            class Test : public QObject
            {
              Q_OBJECT
              Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled)
            public:
              Test(QObject *parent = 0) : QObject(parent) {}  
              virtual ~Test(){}
              void setEnabled(bool e) { enabled = e; }
              bool isEnabled() const { return enabled; }

            private:
              bool enabled;
            };

            然后在主函數中
            Test *test = new Test;
            test->setProperty("enabled", true);
            //test->setEnabled(true);        //ok also work
            if(test->property("enabled").toBool())

            posted @ 2011-05-12 07:24 RTY 閱讀(2056) | 評論 (0)編輯 收藏

            1.程序中要國際化的靜態字符串用tr()<源代碼是latin1字符串時>及trUtf8()<源代碼不是latin1字符 時>

            2.動態string用qstring的arg()方法,如tr("host %1 found").arg(hostname),所謂動態是指需要參數生成字符串

            3.在用tr轉換變量之前,變量用QT_TR_NOOP,此方法用在靜態字符串數組上
              如: static const char *greeting_strings[] = {
                     QT_TR_NOOP("Hello"),
                     QT_TR_NOOP("Goodbye")
                 };
                 tr(greeting_strings[0]);
             
            4.宏QT_NO_CAST_FROM_ASCII強制tr檢查

            5. QTextCodec及QTextStream提供不同的字符編碼支持。app可能偶爾需要輸入輸出不同于locale編碼的字符編碼。
            app運行時,系統的locale決定了8-bit 數據的8-bit 編碼方式。
            當app在Cyrillic KOI8-R locale (the de-facto standard locale in Russia)需要輸出Cyrillic in the ISO 8859-5 encoding,可用如下參考代碼:
            QString string = ...; // some Unicode text
             QTextCodec *codec = QTextCodec::codecForName("ISO 8859-5");
             QByteArray encodedString = codec->fromUnicode(string);
              從Unicode轉化到local 8-bit 編碼,一個簡便方法是用QString::toLocal8Bit(),另一個是用 QString::toUtf8()
              煩方向的轉換有 QString::fromUtf8() and QString::fromLocal8Bit(),或更通用的從ISO 8859-5 Cyrillic到Unicode的轉換:
                QByteArray encodedString = ...; // some ISO 8859-5 encoded text
             QTextCodec *codec = QTextCodec::codecForName("ISO 8859-5");
             QString string = codec->toUnicode(encodedString);
             
            QTextCodec::codecForLocale()返回的編碼方式是最可能需要支持的編碼方式,因為用戶最可能使用它與其他人分享交流文檔。

            如果tr中不是latin1,在.qro中增加codecfortr = utf-8指明字符編碼,在main中也應QTextCodec::setCodecfortr


            6.QApplication::setLayoutDirection可以設置書寫方向

            7.可以把qm文件放在exe中,可以用qt的資源系統

            8. 在app中用QTranslator::load()及QCoreApplication::installTranslator()根據用戶語言加載語 言文件.
            qt可以安裝多個QTranslator
            int main(int argc, char *argv[])
             {
                 QApplication app(argc, argv);

                 QTranslator qtTranslator;
                 qtTranslator.load("qt_" + QLocale::system().name(),
                         QLibraryInfo::location(QLibraryInfo::TranslationsPath));
                 app.installTranslator(&qtTranslator);

                 QTranslator myappTranslator;
                 myappTranslator.load("myapp_" + QLocale::system().name());
                 app.installTranslator(&myappTranslator);

                 ...
                 return app.exec();
             }

            9.qlocale可以指定數字和日期時間。其他locale信息可用C++標準函數setlocale或localeconv
            10.icon的國際化,可在qre文件中用lang屬性:
            如<qreresource>
             </qreresource>
             <qreresource lang="es">
             </qreresource>
            11. 1)在.qro中增加欲支持的語言,
              TRANSLATIONS=app-cn.ts \
              app-fr.ts \
              app-ca.ts

             2)lupdate提取所有的tr中的字符形成qm文件
             3)用qt linguist轉換不同語言
             
             4)用lrelease把.ts文件轉換成二進制的.qm文件

            posted @ 2011-05-12 07:21 RTY 閱讀(976) | 評論 (0)編輯 收藏

            僅列出標題
            共31頁: First 21 22 23 24 25 26 27 28 29 Last 
            亚洲国产精品一区二区久久| 亚洲一区中文字幕久久| 精品久久香蕉国产线看观看亚洲| 久久伊人精品青青草原高清| 亚洲伊人久久综合影院| 人妻无码αv中文字幕久久琪琪布 人妻无码久久一区二区三区免费 人妻无码中文久久久久专区 | 精品熟女少妇a∨免费久久| 国产精品丝袜久久久久久不卡| 日韩AV无码久久一区二区| 99re这里只有精品热久久| 色欲久久久天天天综合网精品| 欧美久久综合九色综合| 99久久国产亚洲高清观看2024| 性欧美大战久久久久久久| 国产精品久久免费| 亚洲欧美成人久久综合中文网 | 久久久久久综合网天天| 久久久久女教师免费一区| 亚洲国产精品婷婷久久| 午夜精品久久久久久中宇| 国産精品久久久久久久| 久久99亚洲综合精品首页| 色8久久人人97超碰香蕉987| 久久夜色撩人精品国产| 久久久久久久91精品免费观看| 亚洲人成无码www久久久| 久久九九全国免费| 久久精品人成免费| 94久久国产乱子伦精品免费| 久久国产欧美日韩精品| 三上悠亚久久精品| 久久亚洲国产成人精品性色| 久久丫忘忧草产品| 久久综合亚洲欧美成人| 国产香蕉久久精品综合网| 日韩AV毛片精品久久久| 日本欧美国产精品第一页久久| 国产精品综合久久第一页| 久久精品视频网| 国产精品久久久久乳精品爆| 香蕉久久夜色精品国产小说|