Wednesday, December 13, 2017
Thursday, September 21, 2017
C++ Builder XE7 LME288 Error
https://stackoverflow.com/questions/28929516/c-builder-xe7-lme288-error
Monday, September 4, 2017
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).
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
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 */;
Thursday, August 17, 2017
Wednesday, April 5, 2017
[C++ Builder] Edit language resource
http://docwiki.embarcadero.com/RADStudio/Berlin/en/Editing_Resource_Files_in_the_Translation_Manager
Thursday, March 30, 2017
[C++] Use of undeclared identifier in C++ with templates and inheritance
Add
before the identifier.
this->
before the identifier.
Friday, March 24, 2017
[Arduino] Sony Camera Remote Controller (IR)
最簡單的方式,只需要一個按鍵和一個紅外線 LED,接線如下:
LED正極:Pin 13
LED負極:GND
按鈕二端分別接 Pin 2 和 5V
線路圖如下:
#include <multiCameraIrControl.h>
Sony cameraIR(13); //宣告 Sony 像機物件,並設定 LED 正極接 Pin13
int buttonPin = 2; //按鈕的接腳
int buttonState = 0;
void setup(){
pinMode(buttonPin, INPUT);
}
void loop(){
buttonState = digitalRead(buttonPin);
if( buttonState == LOW) {
cameraIR.shutterNow();
}
}
上面的線路沒有用電阻降壓保誤,可能會把 LED 燒壞,另一種比較保險的接線如下,用一個10KΩ電阻連接 LED 負極和按鍵。
[Reference]
Subscribe to:
Posts (Atom)
[Qt] 執行檔需要哪些 Dll?
1. 使用 Qt 的 windeployqt.exe 工具 (在 C:\Qt\Qt5.14.1\5.14.1\msvc2017\bin\)。 a. 把執行檔 myProgram.exe 放在某個資料夾。 b. 在檔案總管這個資料夾按 Shift 和滑鼠右鍵,開啟 Po...
-
From: http://bcbjournal.org/articles/vol3/9901/Working_with_version_information.htm?PHPSESSID=eb3eea609943c3d1bb8294288b945696 January 1999 ...
-
[Reference] http://www.programmer-club.com.tw/ShowSameTitleN/cb/10992.html 在主程式 WinMain() 加入下面程式碼 WINAPI WinMain(HINSTANCE, HINSTANCE, LPST...
-
看這裏 http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/1f22d98f-e150-4a54-9967-1641fa86dbc5