Wednesday, August 23, 2017

[OpenCV][C++ Builder] Use OpenCV in C++ Builder? Or via Delphi?

[Reference] https://github.com/Laex/Delphi-OpenCV

1. Download Delphi-OpenCV.
2. Generate OpenCV C++ header (.hpp) files from .pas files.
3. Convert OpenCV library files (.lib) from Coff to OMF using ( Coff2OMF.exe).

Tuesday, August 22, 2017

[C++ Builder] String Replace

[Reference]
http://docwiki.embarcadero.com/Libraries/Tokyo/en/System.SysUtils.StringReplace

BCB的字串替換


extern DELPHI_PACKAGE System::UnicodeString __fastcall StringReplace(const System::UnicodeString Source, const System::UnicodeString OldPattern, const System::UnicodeString NewPattern, TReplaceFlags Flags)/* overload */;




[Qt] 執行檔需要哪些 Dll?

 1. 使用 Qt  的 windeployqt.exe 工具 (在 C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\)。   a. 把執行檔 myProgram.exe 放在某個資料夾。   b. 在檔案總管這個資料夾按 Shift 和滑鼠右鍵,開啟 Po...