TComponent *pform, *pcomponent;
AnsiString NoNameComponent;
for( int ff=0; ff< Application->ComponentCount; ff++) {
pform = Application->Components[ff]; // get a form
for( int i=0; i< pform->ComponentCount; i++ ) {
pcomponent = pform->Components[i]; // get a component
if( pcomponent->Name == "" ) {
NoNameComponent = pcomponent->ClassName()
+" at "+pform->Name + "has no name";
}
}
}
Showing posts with label Application. Show all posts
Showing posts with label Application. Show all posts
Friday, March 28, 2014
[C++ Builder] How to search components in the application
The following code search the component whose Name is empty("").
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...
-
[Reference] http://www.programmer-club.com.tw/ShowSameTitleN/cb/10992.html 在主程式 WinMain() 加入下面程式碼 WINAPI WinMain(HINSTANCE, HINSTANCE, LPST...
-
From: http://bcbjournal.org/articles/vol3/9901/Working_with_version_information.htm?PHPSESSID=eb3eea609943c3d1bb8294288b945696 January 1999 ...
-
info.plist 裏的 [Application supports iTunes file sharing]設定為 [YES] (for Files App) [Supports opening documents in place] 設定為 [YES] ( for s...