原创 js中創建對象是,工廠方式與構造函數方式中this的區別

上代碼: name="www"; function createClass() { alert(this == window); this.name="ad"; return this; } var o=createClass(); al

原创 QT寫文件

文件操作一般有4步驟: 創建QFile對象並打開對象; 關聯輸出流; 往輸出流中寫數據; 關閉文件對象 代碼示例如下: QFile outFile("c:/debuglog.html"); outFile.open(QIODe

原创 QT生成com組件信息

通過QAxWidget 的gennerateDocumentation()函數可得到COM的信息。 示例代碼如下 QAxWidget *object=new AxWidget("Word.Application",NULL,Qt

原创 libtorch+vs 容易出現的問題 scalar is umbiguous

libtorch+vs 容易出現的問題 scalar is umbiguouslibtorch+vs 容易出現的問題 scalar is umbiguous libtorch+vs 容易出現的問題 scalar is umbigu

原创 cmake常用命令備忘

AUX_SOURCE_DIRECTORY(NL SOURCES) ADD_DEFINITIONS(-DNL_USE_ATLAS) 生成: ADD_LIBRARY(nl ${SOURCES} )

原创 qmake來組織C++項目

首先,QT的bin目錄加入到系統環境變量,打開CMD,切換到源代碼文件夾下 生成Qt Creator的項目配置文件(.pro文件) 命令: qmake -project 生成VS的項目配置文件(.vcxproj文件) 命令1:

原创 js中創建對象時,工廠方式與構造函數方式中this的區別

上代碼: name="www"; function createClass() { alert(this == window); this.name="ad"; return this; } var o=createClass

原创 js 文本結點

<html> <head> <script> window.οnlοad=function() { var box=document.getElementById("box"); //alert(box.chil

原创 歡迎使用CSDN-markdown編輯器

使用Beyongd Compare來配置git的merge tool 使用Beyongd Compare來配置git的merge tool,命令行操作如下: //配置Diff工具 git config --global diff.

原创 qt的

dumpcpp 工具 dumpcpp ---- ActiveQt模塊的命令行工具,可以導出Qt能識別的COM組件的接口。這個工具在Qt庫的bin目錄下可以找到。如果沒有,也可以在Qt庫\tools\activeqt\dumpcp

原创 關於js中函數裏的this

<script> var user="window"; var obj={ user:"obj", getUser0:function() { alert(this); alert(this.user); }, getUser1:

原创 QT處理中文之QString轉爲const char *

示例代碼如下 QString str = "wode我的dd"; string s1=string(str.toLocal8Bit()); const char *q=s1.c_str(); cout<<q<<endl; 輸出結果

原创 git使用tortoisesvn爲合併工具-----我的.gitconfig文件

git的設置,.gitconfig文件內容如下: # 全局提交用戶名與郵箱 git config --global user.name "Yuchen Deng" git config --global user.email 郵箱

原创 QAxWidget (QAxObject)調用com組件

調用的模式是,通過querySubObject()和dynamicCall()兩個函數, 獲取對象 調用該對象的方法 QAxWidget word("Word.Application"); word.setProperty("

原创 查看lib中的函數命令

dump /exports a.lib