原创 MFC在添加gsoap生成的源文件到工程項目中,出現bug: MFC apps must not #include
問題:MFC在添加gsoap生成的源文件到工程項目中,出現bug: MFC apps must not #include <windows.h> 解決方案:經研究是因爲在stdsoap2.cpp和XXXProxy.cpp文件中引入stda
原创 ios 按鈕控件點擊後,左上角有藍色小塊
解決方案: buttonType 改爲 UIButtonTypeCustom
原创 json串中English("")換成Chinese(“”)函數代碼
<pre name="code" class="objc">json串中“鍵-值”對中替換英文引號爲中文引號的方法如下: private static String jsonString(String s){ ch
原创 IOS開發過程常見警告解決方案歸納總結
1. 'UITextAlignmentCenter' isdeprecated: first deprecated in iOS 6.0 把UITextAlignmentCenter改成NSTextAlignmentCent
原创 MFC在添加gsoap生成的源文件到工程項目中,出現bug: MFC apps must not #include <windows.h>
問題:MFC在添加gsoap生成的源文件到工程項目中,出現bug: MFC apps must not #include <windows.h> 解決方案:經研究是因爲在stdsoap2.cpp和XXXProxy.cpp文件中引入stda
原创 一路走好!
一代大神,剛剛瞭解,便已離去,一路走好!
原创 MBCS,UNICODE,UTF-8之間的轉換
1. ANSI to Unicode wstring ANSIToUnicode( const string& str ) { int len = 0; len = str.length(); int unicodeLen =
原创 xcode修改項目名後反覆出現 clang error
Ld /Users/lpf/Library/Developer/Xcode/DerivedData/項目名稱-hlaftrutsszdxidyyvgbghpejcia/Build/Products/Debug-iphoneos/項目名稱
原创 CFileFind類使用
是Visual C++的MFC類CFileFind吧?成員函數isdots()檢測的是『.』『..』這兩個目錄。 這是一個操作系統相關的概念。 . - 代表當前的目錄;而.. - 代表上一層的目錄。舉例來說:如果程序的當前目錄是:c:\w
原创 將CString 轉換爲 TCHAR*
<span style="white-space:pre"> </span>//*********************************************************************** //* 函